Moab Viewpoint
List of Strings Deciders

List of Strings Deciders

Whenever the XML allows users to specify a list strings decider (instead of a concrete list), the following are valid inputs:

  • A comma-separated list of values. Viewpoint parses the comma-separated string to a list of values.
  • A calculate element to convert a string to a list. (See the string to list decider section that follows for more information.)
  • A UI component that holds a list of strings (such as <component id="nameOfComponent" />) inside the parent element.

String to List Decider

A string to list decider takes a single string and parses the string into a list of strings using a delimiter. Administrators may use this decider using the <calculate operation="string-to-list"> tag. This accepts one child element, which is any string value decider (such as a component or another calculate element). This element also accepts a delimiter attribute. If the delimiter is not specified, Viewpoint uses a comma to tokenize the string.

The following is an example of a string to list decider. In this example, the hostListTextbox component would contain a comma-separated list of values that would then be converted to a list.

<calculate operation="string-to-list" delimiter=",">
  <component id="hostListTextbox" />
 </calculate>