Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Is it possible to skip dialog in a script when a Find doesn't find any records ?


This topic is 5962 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Is it possible to skip dialog in a script when a Find doesn't find any records ?

(resulting in an empty "found set" but not interrupting the script, Instant Web Publishing compatibility required)

Thank you.

Edited by Guest
Posted

Someone might correct me on this but could you use the Error Capture and Get (LastError)

If [Get (LastError) = 401 ]

Do this instead....

End If

Posted

The problem is not that the script stops ???

- in FMP : I get a message box asking me if I want to continue event if there are no found record.

(anyway I only really care about what happens in Instant Web Publishing)

- in IWP, it just doesn't want to perform a Find that find no record, and it keep asking that I modify the find again and again. (I want to be able to perform a find that finds nothing)

Posted

Turn set error capture on. If you want to do something different if no records are found, do what grumbachr suggests (place it immediately after your perform find[] step). If no records are found, then Get(LastError) returns 401 when set error capture is on.

This topic is 5962 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.