Putting buttons as a drop down list
I want to use buttons to go to various layouts, but want to do a drop down selection list instead of multiple buttons on a layout. Is this possible? I use FM Pro 10.
You could use the Event Script Plugin to run as Validated by Calculation. It works similarly to Script Triggers in FMP11, but is setup as a custom function. So when the field would be modified and validated the script would run and you could have it grab the result from the drop down list and so forth...
Not sure where your skill level is at, so if you need further clarification let me know.
Josh Jay wrote: So when the field would be modified and validated the script would runHowdy Josh, How is this different from an OnObjectModify trigger?
So when the field would be modified and validated the script would run
How is this different from an OnObjectModify trigger?
No difference at all now that I realized FMP10 has script triggers...it looks like I got the versions mixed up o_0. For some reason I was thinking script triggers were new to FMP11.
Thanks for pointing it out Ninja.
So at the end of the day, you could use a GoToLayout script step, launched on Modify or by a button, that goes to a layout name by calculation. Have the calc be the field contents from your dropdown list.
Is this what you were after?
I am an advanced beginner. Let me go to my Missing Manual and see if I can figure it out. Thanks.
Make a backup and play with it til it works...then put it into the "real" one.
In Scriptmaker, make a single step script that uses the gotolayout function.
When that is in place, there are options for that step on the bottom right... choose layout by name by calculation
When the calculation window then pops up, select your field from the top left pane and double click it so it shows up by itself in the bottom window.
Hit OK a few times to get back out.
change your field value to a different layout name using your dropdown, launch the script manually (Scripts dropdown menu) and see if that's what you want.
If so, set up a button with that script attached or set the OnObjectModify trigger to launch that script.
The words are daunting, but walking through it you should find it fairly direct.
Retrieving data ...