one way you can do it it to have a drop-down list with 4 choices:
- pick an option
- show selected records
- select all shown records
- clear selected records
When the user click on first choice, that simply do nothing and closes the list. There is such an example with Version 12 training at the bottom of a form, can't remember if it's in the base training or advanced training.
You could use the FMPURL method. Have a custom value list with the names of your scripts. Use a script trigger to call an "Open URL" step. Call the URL:
"fmp://host i.p.address/" & Get ( FileName ) & ".fmp12?script=" &
GetAsURLEncoded ( fmpurltest::script )
Replace fmpurltest::script with whatever field you have set to your value list, of course.
GetAsURLEncoded takes care of any problems that will arise due to spaces/other characters in your script names.
This is similar to the method referenced by dougalder above, but doesn't require new conditional segments of script to be added for each new option you add to the value list, simply the one OpenURL step will handle it all just fine.
It should be noted that this method will only work with a FileMaker Pro or Go client. Users on WebDirect or Instant Web Publishing can not make use of this technique. The method mentioned by dougalder WILL work if web users are a part of your solution.
Edited to fix an error in url as noticed by reading iSolutions article linked below.
You could use the FMPURL method.
I wasn't sure, as I never started playing around with it until 13, but I did a quick Google search and according to this:
it should be available, unless I'm misreading something.
Edit: I think what 13 added was the ability to use fmp url on local files, whereas in 12 they had to be hosted.
Upon reading that link, I see I made an error (will edit to fix it) in my original response. According to this article the $ was not available in 12, and the ip should be specified.
This method worked nicely for me.
However, I can't for the life of me figure out how to remove the arrow when I use a pop-up menu, which I highly prefer to drop-down menus. I don't think there is any way to remove these, am I correct? If I remove all the thematic formatting, I am stuck with a weird drop shadow, but no arrow.
My question was more of a rhetorical nature …