With BaseExtensions, we are able to check whether a date document property is between X and Y days ago. If the document property is not between the specific time span, the command must cancel the chain of command execution. Thus, this is a great tool to use in conjunction with other commands if, for instance, a button contains several commands.
Module is located here:
...\ModuleLibrary\BaseExtensions\04_nocontext_MISC\07_WPE_checkDocPropDate.xmlCMD
<Cmd case="BaseExtensions:ContinueIfDocumentPropertyDate"/>
Parameters
docprop-name
Define name of the document property containing the date field. Date must be typed as value (format must be yyyyMMdd or yyyy-MM-dd).
start-date
Minimum days ago in order to continue execution of next command, e.g. 1.
end-date
Maximum days ago in order to continue execution of next command, e.g. 5.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article