Creating or configuring forms > Adding a date decider

6.4 Adding a date decider

Specifying a relative date is very similar to specifying a duration decider. However, a duration has no meaning until it is applied to a date. For example, a duration of one month differs depending on if it is currently February or March. A relative date is always applied to the current time at run time.

To add a date decider

  1. Open the .xml file where a date decider (rather than a concrete date) is allowed. These files are usually located in the Viewpoint home directory.
  2. Set a date component inside the parent element.
  3. <component id="nameOfDatebox" />
  4. Determine whether the date should be absolute or relative, or evaluated by Viewpoint in relation to the current date. To configure an absolute date, set the relative attribute to "false". To configure a relative date, set the relative attribute to "true".
  5. Set the following date child elements to specify an absolute date or a date relative to the current date, depending on which option you chose in the previous step.
  6. The children in each element must be an integer decider. Any value not set is assumed to be 0. Values specified above the theoretical maximum are converted (25 hours corresponds to +1 day and 1 hour).

  7. Specify the <calculate> element if you’d like to add a duration to a date. Set the binary-operation attribute to "add".

Related topics