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

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

Recommended Posts

Posted

- I have a button on a db.

- When the button is clicked it opens a file (via a script).

- The file relates to the record number (so if it is record #5 and you click the button a file called "5.pdf" is opened via the "open URL" script step)

the question:

Is there a way to check if the file exists? for example, if the file doesnt exist Id like to give the user a message ( "Show Custom Dialog")

thanks!

Posted

Trap the error in the script:

Set Error Capture [On]

Set Field [zc_ErrorCaptureField_g; Get (LastError)]

#The field zc_ErrorCaptureField_g is a global text field

If[zc_ErrorCaptureField_g <> 0]

Show Custom Dialog ["Couldn't find the file..."]

End If

This topic is 7313 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.