XML Element: type

Identifies the data type of a metric-entry or local-entry elements.

Parent elements

metric-entry, local-entry

Child elements

enumeration, leftdigits, rightDigits

Format

<wd:type base="boolean"/>

or

<wd:type base="enum">
   <wd:enumeration value="High"/>
   <wd:enumeration value="Medium"/>
   <wd:enumeration value="Low"/>
</wd:type>

Attributes

Attribute Description

base

Identifies the data type for this entry. Can be one of the following:

  • string - Accepts a sequence of alpha-numeric characters. Use for string type metrics.
  • long-string - Accepts a long sequence of alpha-numeric characters. Use for long-string type metrics.
  • number - Accepts any digit and the decimal point. Use for number type metrics.
  • date - Accepts a date, such as 01/01/2014. Use with date type metrics.
  • enum - Accepts a single selection from a list of options. Use with list type metrics.
  • boolean - Accepts true or false. Applies to local-entry elements only.
  • multi-enum - Accepts multiple selections from a list of options. Applies to local-entry elements only.

Example

The following example defines an entry as a string type:

<wd:local-entry
   title="Activity Notes"
   name=”ActivityNotes”>
      <wd:type base=”string”/>
</wd:local-entry>