Creating or configuring forms > Adding a duration decider

6.5 Adding a duration decider

Specifying a duration decider is very similar to specifying a relative date. 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 duration decider

  1. Open the .xml file where a duration decider (rather than a concrete duration) is allowed. These files are located in the Viewpoint home directory.
  2. Set a duration component inside the parent element.
  3. <component id="nameOfDurationTextbox" />
  4. Set a duration by specifying an integer value for the following child elements:
  5. Any value not set is assumed to be 0.

  6. Configure the binary calculation by setting the <calculate> element’s binary-operation attribute.

Related topics