August 19, 200520 yr Newbies 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!!!
August 19, 200520 yr Are you using global fields to hold the results from the dialog box? Normal fields have no value in the find mode.
August 19, 200520 yr Author Newbies None of the fields in my database are global. This is my first attempt to use a dialog box or a find script.
August 19, 200520 yr 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
August 19, 200520 yr 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.
Create an account or sign in to comment