June 13, 200718 yr What I am trying to do is get this script to use the Custom Dialog Input Fields to ask for search criteria. I'd like the pop up to ask for the report number, put the layout in to Find Mode, set the user entered data to field, the perform the find. I have it working up to performing the find. When the script runs it stops and waits for the user to click the "Find" button (which shows up on the left Menu) in order to continue the script. The report number is set to the proper field for the search, I just can't come up with the "go" command to execute the search. I want the end user to key the report number into the pop up field, press enter and it bring up the record. Here is my script so far with the problem spot in red Go to Layout ["Figure Review" (Figure Review Table)] Show Custom Dialog ["Figure Review"; "Do you need to Review Figures or Login as Cartographer?"] If[Get (LastMessageChoice) = 1] Re-Login (Account Name: "temp"; Password: "user"; No Dialog] Show All Records Enter Find Mode Show Custom Dialog ["Figure Review"; "Please specify the Report Number for review." ; Figure Review Table::Report Number] [color:red]Perform Find/Replace? (rest of script) End If If [Get (LastMessageChoice) = 2] Go to Layout ["CRAI Main Menu"()] End If If [Get (LastMessageChoice) = 3] Re-login [Account Name: "Administrator"] End If
June 13, 200718 yr Author Nevermind.... I re-read my post and had a moment of clarity. *FYI - solution is "Perform Find" not "Perform Find/Replace". what a dope....
Create an account or sign in to comment