Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3997 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello everyone again... and let me just start off by saying how HELPFUL this forum is!!!

 

I have a form which has a OnLayoutEnter script which does as follows:

Enters Find mode

Show Custom Dialog box

Performs find

 

Is there a way I can loop the custom dialog box until the user actually enters a search or if the search didn't find any records matching the query? I ask this because I have some users who are extremely computer illiterate and some times the cursor is no longer in the textbox and they don't realize and they hit enter and of course it gives them the common error message.

Posted

Sure after the custom dialog box in your script you insert an if statement  that checks if the entry field used in the dialog box has a value if it does not you then repeat the custom dialog, you can repeat this as many times as you think necessary. 

 

I usually change the message to something like "You did not enter a value please try again."

 

You can also trap for no records found and give a different dialog box for that.  You will need to "Set error capture Off" before the dialog boxes start to be able to use your own dialog for no records found.

Posted

...

You can also trap for no records found and give a different dialog box for that.  You will need to "Set error capture Off" before the dialog boxes start to be able to use your own dialog for no records found.

 

That is exactly what I want to do but when I test if isEmpty(field) it does not work...?

This topic is 3997 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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