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.xml
CMD
<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.
Comments
0 comments
Article is closed for comments.