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

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

Recommended Posts

Posted

How can I put the current time in a global field when a script is run?

I have a global field ("Last Update Time") defined as time. The script step is - Set Field ["Last update Time","Time(hour(today),minute(today), seconds(today))"] However the result is always 10:54 AM, not the time the script was run.

By the way the script - Set Field ["Last Update","Time"] where "Last Update is a global field formated for a date

Posted

In general, use Status( CurrentDate ) and Status( CurrentTime ) rather than the Today function. Today is only evaluated during the launch of the files, which is probably why you got the same value every time. The Status functions are evaluated when they are called in the script.

Chuck

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