Get file name from user via native file panel
I have a container field in records of one of my tables. A mouse right click brings up the menu to insert all kinds of file types into this field. I only want one (picture) and I would prefer to have a button next to the layout object representing this container.
I can see no way to have the native file selector panel pop up to query the user for the file to insert and have me capture the selection to sculpt a parameter for the Insert Picture script step. Am I missing something or this not a FM feature?
You'll need to attach a script to that button, something like:
Set Error Capture [ On ]
Go to field [ YourTable::YourContainer ]
Insert Picture [ Reference ]
If [ Get ( LastError ) ]
Clear [ ]
Commit Records/Requests [ ]
This way you could even disable entering that field ( by field behavior )