Newbies PALLUAN Posted September 11, 2012 Newbies Posted September 11, 2012 Guys, I've tried to look everywhere but I can't find the information I need. I need a script that performs a series of action. In the middle of the script I would like to have a dialog box that allows the person to insert some text. After that based on that text I need the script to perform a search in the database. Hope to be able to explain the problem... thank you for your help!
LaRetta Posted September 11, 2012 Posted September 11, 2012 Hi and welcome to FMForums. :-) To accept User input you need a field. Create global text field called gSearch then pseudo-script would be: ... do your actions Set Field [ gSearch ; "" ] Show Custom Dialog [ OK ; cancel ; ... On input tab, specify using the global by selecting it and include label. ] If [ Get ( LastMessageChoice ) = 2 // User selected cancel ] ... do whatever you wish if search is cancelled Else # User wants to continue Enter Find Mode [ uncheck pause ] Set Field [ youFieldToSearch ; gSearch ] Set Error Capture [ On] Perform find[] If [ not Get ( FoundCount ) ] Show custom dialog [ "no records found" ] ... do whatever Else ... Records found so do whatever End if End if This is difficult to fully view on the iPad, LOL, so it is a bit rough. :-) .
Newbies PALLUAN Posted September 11, 2012 Author Newbies Posted September 11, 2012 Wow thank you LaRetta! It works! So kind Antonio
Recommended Posts
This topic is 4525 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