Jump to content

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

Recommended Posts

Posted

Hello,

I've searched for an answer to my problem here and on Google but have not found one yet. Can anyone help?

I have an Open Script that generates a report, saves as pdf and sends it as an email attachment if criteria are met.

How do I check if either the file has been opened today or if the script has run today so as to avoid generating the same report and email numerous times on the same day?

Cheers,

Alvise

Posted

...and use the existence of that record as the criteria as to whether to run the report or not.

Posted

Yes. If using a single-record settings table:

...

If [ not Get (LastError) ]

Go to Layout [settings]

Set Field [ Settings::LastReport ; Get (CurrentDate) ]

End If

..

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