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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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