DisplayForm Mappings

Allows you to control what data is displayed in each control when a user views data. (E.g., form.aspx?cwformtype=display)

For each control you want to use in your form, specify the control within its own <Control> node.

XML Reference

<Control>

<ControlName></ControlName>

<NodePath></NodePath>

<Type></Type>

<Format></Format>

</Control>

ControlName (required)

The name of the Control that will be used within the form. The control name must match a control specified in the Controls section of the form or the Extra Controls property.

NodePath (required)

The xpath to the data to be inserted into the Control. Data returned from the provider for an item/edit detail action URL is in XML. As such, you must specify the path to the node of data that will be identified as the selected item within the control.

Type

The type of data being collected.

Value

      datetime

      other

Format

The format of the data being collected.

Example

      MMMM yyyy - Semptember 2007

Must have a type of "datetime"

      ${0} - $1.00

Must have a type of "other"

Always use {0} to indicate the data collected

Mapping Example

<Control>

<ControlName>Expenses</ControlName>

<NodePath>NewDataSet/Data/Expenses</NodePath>

<Type>other</Type>

<Format>${0}</Format>

</Control>

<Control>

<ControlName>BillableHours</ControlName>

<NodePath>NewDataSet/Data/Billable_Hours</NodePath>

</Control>

 

Back to Top