Newbies IrishLad Posted April 22, 2009 Newbies Posted April 22, 2009 Null finds in IWP Hi All I’ve created a database that I want to publish on the Web using IWP. I used FM Pro 10 Advanced to create the app. I want the status area of the database permanently hidden. I have supplied navigation buttons to carry out all the usual FM tasks and these buttons work fine, except for one: my custom-made “Perform Find” button. If the status area is displayed and I click the standard “perform find” button Internet Explorer displays an error message telling the user that no records match the criteria of the find request. But if I attach the “perform find” script to a custom-made button and hide the status area this error message is not displayed and the page merely refreshes. Even when the status area is displayed no error message is displayed if the find is null. When the find is null I want the user to be directed to a layout that contains an error message and gives the user the option of doing another find or abandoning the find. Alternatively, I would like the standard IE Explorer error message to display, but without the status area being displayed. Any ideas?
IdealData Posted April 22, 2009 Posted April 22, 2009 You can trap for errors in Scripts using the Error Capture [On|Off] step. Use the Get(LastError) after executing the find - if the error is > 0 then the find has failed, direct your script accordingly.
Newbies IrishLad Posted April 22, 2009 Author Newbies Posted April 22, 2009 Hi IdealData I’ve just tried what you suggested and it’s worked a treat! Thanks very much for helping out a Filemaker newbie.
Recommended Posts
This topic is 5695 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