Newbies weeznak308 Posted August 19, 2005 Newbies Posted August 19, 2005 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!!!
RalphL Posted August 19, 2005 Posted August 19, 2005 Are you using global fields to hold the results from the dialog box? Normal fields have no value in the find mode.
Newbies weeznak308 Posted August 19, 2005 Author Newbies Posted August 19, 2005 None of the fields in my database are global. This is my first attempt to use a dialog box or a find script.
-Queue- Posted August 19, 2005 Posted August 19, 2005 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
-Queue- Posted August 19, 2005 Posted August 19, 2005 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.
comment Posted August 19, 2005 Posted August 19, 2005 Who knows from where the script is being triggered? I do.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now