Check if a date document property is between a time span (W/P/E)

Modified on Mon, 5 Oct at 1:55 PM

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:

Code
...\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.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article