Automation: Date arithmetic result store in a variable

We tried to make LogicalDOC as intuitive as possible, but an advice is always welcome.

Moderator: car031

Femi6511
Posts: 3
Joined: Wed Nov 06, 2019 5:17 am

Automation: Date arithmetic result store in a variable

Wed Nov 06, 2019 5:57 am

I am using automation scripts and triggers to achieve my purpose, but the result of my date arithmetic does not seem to be available for storage in an integer variable declared at the start of the script, e g.
In the below script
RESUMEDATE, APPLYDATE, YEARS are extended properties of the documents.

foreach ($doc in $documents)
Int diff, dobdiff;
#set( $diff = $getfullYear.doc("RESUMEDATE") - $getfullYear.doc("APPLYDATE")
#set.Value('YEARS',$diff)
SdocTool.store($doc);
#end

My expectation is to have the difference in years stored in the extended properties YEARS for each document.
The script runs, but still no value stored for YEARS in my extended properties.
Anybody to assist please. Thank you.

Return to “Usage”

Who is online

Users browsing this forum: No registered users and 2 guests