Application Development

Dynamic Views for Multiple Control Fields

This section contains an example of an alternative way to use a Data Control View: one registered page uses multiple Vertical Views to tailor content that displays to the user. This method is used when there are multiple input fields that determine how a Vertical View looks. In this example, the input fields on the Horizontal View determine what fields display on the Vertical View.

Refer to Control Views for general information.

The Orders table contains the following fields:

  • OrderID – ID for record
  • Submitted – Date of order
  • Type – Options are Online or InStore
  • StoreID – ID for the store where the order was placed
  • ShipAddress – address for shipping online orders

The four views would be:

webOrdersHor horizontal view

webOrders#Type#Ver registered vertical view

webOrders#Online#Ver substituted view

webOrders#InStore#Ver substituted view

ID

ID

ID

ID

Submitted

Submitted

Submitted

Submitted

Type

Type

 

 

 

StoreID

 

StoreID

 

ShipAddress

ShipAddress

 

 

When the user selects the Type of Online on the Horizontal View List box, and then navigates to the Vertical View, the Stewardship Tier looks at the view webOrders#Type#Ver and replaces the Type between the two # marks with the value from the table. The Stewardship Tier then locates webOrders#Online#Ver and uses that to determine the fields to display, allowing the user to enter the ShipAddress for the Order.