Variable set layout
Variable sets can have one of many layouts. You can define the order of the variables for each item.
- 1 column wide: Variables appear in a single vertical column, ordered from top to bottom. This column is a simple way to display information, but can result in empty space to the right of questions. This order is the default layout.
- 2 columns wide, alternating sides: Variables are laid out in two columns with variables placed alternately in the left and right columns.
- 2 columns wide, one side, then the other: The first half of the variable set is laid out sequentially in the left column and the second half is laid out sequentially in the right column.
Variable set order
A variable set is a discrete unit with an order number by default. All variables within the set are included wherever the set is included.
- Variable A (100)
- Variable B (200)
- Variable C (300)
- Variable Set 1 (250) - containing three variables (VS1, VS2, VS3) with incremental order values (150, 250, 350)
The variables are displayed in this order:
- Variable A (100)
- Variable B (200)
- Variable Set 1 (250): Variable VS1 (150)
- Variable Set 1 (250): Variable VS2 (250)
- Variable Set 1 (250): Variable VS3 (350)
- Variable C (300)
Additional layout options
For additional layout options, you can also add container variables to a variable set.
For example, create the following variables and orders:
| Variable | Order |
|---|---|
| Alfa | 100 |
| Bravo | 200 |
| Charlie | 300 |
| Delta | 400 |
| Echo | 500 |
| Foxtrot | 600 |
| 1 Column Wide | 2 Columns Wide, alternating sides | 2 Columns Wide, 1 side, then the other |
|---|---|---|
Alfa Bravo Charlie Delta Echo Foxtrot |
Alfa Bravo Charlie Delta Echo Foxtrot |
Alfa Delta Bravo Echo Charlie Foxtrot |
Set an item-specific order
You can set the order value on a per item basis.
Avant de commencer
Role required: admin
Pourquoi et quand exécuter cette tâche
Use the Order field in this catalog variable set record to set this order value on a per-item basis, overriding the default value defined in the variable set.
Procédure
Examples of variable set orders
The following example demonstrates the layout of variables when variable sets and item variables are associated with an item under different scenarios.
- In Layout 1, order values are specified for both Variable Set A and Variable Set B at the Related Lists level and those order values always takes precedence. Hence, the layout is organized based on the order value specified for the variable sets at the Related Lists level.
- In Layout 2, an order value is not specified for Variable Set A whereas an order value is specified for Variable Set B at the Related Lists level. In this case, the empty value for Variable Set A is considered as zero. Hence, the layout is organized based on the order value of 0 for Variable Set A and 300 for Variable Set B.
- In Layout 3, order values are not specified for both Variable Set A and Variable Set B at the Related Lists level. In this case, the order values specified within the variable sets are considered. Hence, the layout is organized based on the order value of 400 for Variable Set A and 150 for Variable Set B.