Newbies eepmatt Posted July 29, 2004 Newbies Posted July 29, 2004 Is there a way to trigger a script to run as soon as a user makes a selection in a field formatted as a pop-up menu? I know in access there's a way to set up a field to run a particular action any time the data in it is updated... is there a similar Filemaker function? Thanks!
-Queue- Posted July 29, 2004 Posted July 29, 2004 On Windows, yes. Format the field as a pop-up menu and disallow access to it. Then set it as a button attached to a script to Go to Field [yourfield] Pause/Resume Script [0:00:01] {continue with desired steps once selection is made}
Newbies eepmatt Posted July 29, 2004 Author Newbies Posted July 29, 2004 I of course should have mentioned this was on OS X. -Matt
Philland Posted July 30, 2004 Posted July 30, 2004 It's no different in OS X Set the field as a button and attach a script I would probably write it with a validator, SetField [Global = yourfield] Go to Field [yourfield] Loop Pause/Resume Script [0:00:01] Exit Loop If [yourfield does not equal Global] End Loop Phil
-Queue- Posted July 30, 2004 Posted July 30, 2004 It may be different in that a list should be used instead of a menu. Also, the loop is required, whereas a Pause is sufficient on Windows, since FM is frozen until a selection is made, the layout is clicked, or the user navigates to a different program.
powerbookstuff Posted August 8, 2004 Posted August 8, 2004 i don't understand what is involved in making the popup menu selection in a field & having the field formatted as a button. are there two objects involved that are layered together? i use that with two fields on top of each other with entry into the top field not allowed in order to select the rear field. but in this case with a button involved i don't know what to do. what am i missing? thanks
bruceR Posted August 8, 2004 Posted August 8, 2004 There are various plugins that accomplish this also. It doesn't seem that eepmatt has mentioned what version of Filemaker they are using. There is a free plugin with excellent examples available for FM7, look on Versiontracker for EventScript. He has done some clever things with privilege sets that allow you to trigger a script upon ENTERING a field, as well as upon exit.
Recommended Posts
This topic is 7779 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now