Jump to content
Sign in to follow this  
EddyR

Data entry through a Custom Dialog

Recommended Posts

I just made the jump to 7 and my new Custom Dialogs do not work as I would have expected. I simplified my script down to:

Set Error Capture [ On ]

New Record/Request

Show Custom Dialog [ Title: "TITLE"; Buttons: "OK", "not OK"; Input #1: records::name record fill out, "test" ]

If [ Get ( LastMessageChoice ) = 1 ]

Beep

End If

Commit Records/Requests

gives me only the value in my target field (+ the beep) when I push button 1. By contrast, when I push button 2, no beep (correct) but the target field remains empty

Share this post


Link to post
Share on other sites

In the Custom Dialog ("records::name record fill out" is the name of the field). But don't forget that the the target field contains the value entered into the dialog if I choose button 1 !

Share this post


Link to post
Share on other sites

"when I push button 2, no beep (correct) but the target field remains empty "

Eddy, Custom Dialog only accepts input and sets a field based upon default 1. If you want to accept user input to a field, it must be 1 (or OK). Reverse them and it should work as expected.

Share this post


Link to post
Share on other sites

Thanks MoonShadow. I knew it was something silly but after almost an hour of testing slightly modified scripts, I had not found the reason yet

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.