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

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

Recommended Posts

  • Newbies
Posted

I need to write a script that performs a find based on inputs from a dialog box. I can get the dialog box to pop up but I don't know how to perfom a find based on the inputs. Someone help!!!

Posted

Do you mean something like

Allow User Abort [Off]

Set Error Capture [On]

Go to Layout [one associated with the input fields to be searched]

Enter Find Mode [ ]

Show Custom Dialog ["Enter find criteria"; {input fields}]

If [not IsEmpty(field1 & field2 & field3)] {assuming you have 3 input fields in the dialog}

Perform Find []

If [not Get(FoundCount)]

Show Custom Dialog ["No records could be found."]

Show All Records

End If

Else

Enter Browse Mode

End If

Posted

To prevent unexpected results. Who knows from where the script is being triggered? They might be on a layout that is not even related to the input fields' TO.

This topic is 7038 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.