Summary
This command retrieves a partial date value from the specified ‘path’. The path must specify a value that resolves to a partial date.
Attributes
- path (required)
- type (not required) – This attribute specifies the data type. This parameter does not need to be added by the designer but will be added by either the compile or decompile process automatically and it does appear in many examples.
The previous value attributes can also be used with this command.
Parameters
- none
Example
<script scriptId="prior_dobCk"> <body> <s:alert> <s:expression> <s:or> <s:not> <s:isSet/> </s:not> <s:not> <s:isSet> <s:question> <s:question path="/screening/dm.dob_"/> </s:question> </s:isSet> </s:not> <s:gte> <s:partialDatePath path=":value"/> <s:toPartialDate> <s:datePath path="/screening/dm.dob_:value"/> <s:string value="dd[]/MMM[]/yyyy[]"/> </s:toPartialDate> </s:gte> </s:or> </s:expression> <s:correction> <s:string value="optional"/> </s:correction> <s:text> <s:string value="This date is before the date of birth. Please clarify."/> </s:text> </s:alert> </body> <target typeId="questions" when="preprocess" shouldReconcile='true' /> <target typeId="go" when="preprocess" shouldReconcile='true' /> <target typeId="here" when="preprocess" shouldReconcile='true' /> <dependent path="/screening/dm.dob_"/> </script>
Need more help?
Please visit the Fountayn Contact Information page.