April 22, 200916 yr Newbies 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?
April 22, 200916 yr 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.
April 22, 200916 yr Author Newbies Hi IdealData I’ve just tried what you suggested and it’s worked a treat! Thanks very much for helping out a Filemaker newbie.
Create an account or sign in to comment