August 20, 201114 yr 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. :)
August 20, 201114 yr Try the help system on Get(LastMessageChoice) Get(LastMessageChoice) This is one of around 300 functions - study away!
August 21, 201114 yr 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
August 21, 201114 yr "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).
September 16, 201114 yr 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
Create an account or sign in to comment