October 13, 200223 yr I have a layout that has a space problem and need to consolidate some of the buttons to clean things up. Is there a way to have a popup field show scripts and when you click on a given script, the script is performed? I have seen solutions where you select the script from a pop-up value list and then click a button to activate it. That works, but is there a way to just click the script without having to click another button to activate it? Thanks, hj
October 14, 200223 yr There is a way to do this. A demo file of one such technique is available at the following URL: http://www.nightwing.com.au/FileMaker/demos/ScriptMenu.zip If you're interested, dowmload the demo and have a look. The file is not password protected, so you will be able to explore its inner workings.
October 14, 200223 yr Author Ray, The "ScriptMenu" demo was perfect! I'm not sure I would have ubderstood it without the demo. One more quick question. The Global field "gScriptMenu" you have on the layout is named "Select A Script". If I wanted to change that name how would I do it. Thanks Ray, hj
October 14, 200223 yr Hi hj, The default text which resides in the menu field is placed there by one of the 'Set Field' commands in the "Select Script" script. You can change it to anything you like, so long as it exactly matches everywhere it occurs in the script. In the script which is in the demo, you'd have to update it in the parameters for script steps 8, 11, 16 and 21. Glad you've found the demo useful!
Create an account or sign in to comment