LeStew Posted August 20, 2011 Posted August 20, 2011 Hi guys~ Might be a silly question but how can I define what a button does in the "Custom Dialog" script step? I've been able to make window pop up with a question. "Are you done with this record?" the buttons are then, "Yes or No." Ideally a yes answer would close the record, and likewise, a no answer would leave the record open. right now both buttons do the same thing, the next step in my script (which is close the window) Did I just miss a simple If/Then step? and boy it sure would be nice to be able to define that in the custom Dialog specifications box. Thanks again for everyone's patience and community knowledge. I believe I've taken my first steps into a larger world. :)
IdealData Posted August 20, 2011 Posted August 20, 2011 Try the help system on Get(LastMessageChoice) Get(LastMessageChoice) This is one of around 300 functions - study away!
Cabinetman Posted August 21, 2011 Posted August 21, 2011 Something like......... If [Get(LastMessageChoice) = 1] Commit Records/Requests [] ... or whatever you want to do Else If [Get(LastMessageChoice) = 1] Do something else End If
efen Posted August 21, 2011 Posted August 21, 2011 Your example script can only result in the first choice
bcooney Posted August 21, 2011 Posted August 21, 2011 "Ideally a yes answer would close the record, and likewise, a no answer would leave the record open." Closing/opening a record is a meaningful term in FM. Opening a record means that that user has locked the record and will be the only account able to edit the record until they close it (commit it).
Cabinetman Posted September 16, 2011 Posted September 16, 2011 OOPS .... proofreading always helps. That should have been If [Get(LastMessageChoice) = 1] Commit Records/Requests [] ... or whatever you want to do Else If [Get(LastMessageChoice) = 2] Do something else End If
Recommended Posts
This topic is 5090 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