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.
The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems
Automation: Date arithmetic result store in a variable
Moderator: car031
Who is online
Users browsing this forum: No registered users and 12 guests