XML Element: group

Creates a grid of data entry rows. A group element can contain any mix of local-entry and metric-entry elements. A form can have more than one grid within it to group like items together.

Parent elements

web-document

Child elements

local-entry, metric-entry

Format

<wd:group
   title="Title of Grid"
   isCollapsible="true"
   isCollapsed="false">
</wd:group>

Attributes

Attribute Description

title

The source for the grid title. Can contain substitution tokens to display Accolade data.

isCollapsible

Determines if the group contains an Expand/Collapse button in the title row.

Defaults to true if not specified.

isCollapsed

Determines if the grid displays as collapsed when the form is opened. This attribute has no effect unless the isCollapsible attribute is set to true.

Defaults to false if not specified.

Example

The following example defines an online form with a grid titled "Project-Critical Metrics" that contains containing a single metric entry:

<wd:web-document
   title="A Simple Online Form"
   xmlns:wd="urn:sopheon-com:sgm:webdoc:1"
   xmlns=”urn:sopheon-com:sgm:webdoc:1”>
      <wd:group
         title="Project-critical Metrics"
         isCollapsible="false">
         <wd:metric-entry>
             name="marketShare"
             title="Market Share"
             metricName="MktShr">
             <wd:type base="number"/>
         </wd:metric-entry>
      </wd:group>
</wd:web-document>