Conditional Values are important because they allow users to set different values for a property when certain conditions are met. The values assigned can be either static (known at design time) or dynamic, using values from the input XML. Example: For this example, a table with repeating rows that display a collection of CDs (containing title, artist, etc) is considered. To highlight the albums with a price of less than $10, these steps must be followed:
Steps to insert a Conditional Value:
1. First, the object that will be highlighted (in this example the title field) must be selected, then click-righted and the Properties option chosen.
2. The attribute that will receive a conditional value must be chosen from the list. In this example, the Background/Color attribute will be used.
3. The arrow button located at the right side of the attribute must be selected in order to open the Property Value dialog.
4. The Conditional values option must be selected and then the Edit Conditions button. The Conditional Values dialog will be displayed. To add a condition the Add button must be selected and to edit it the Edit button. The value corresponding to each condition can be static or dynamic from the assigned XML file.
In the example below, a static value has been selected as background color when the country is "USA" and another one if the country is not "USA".
Print Layout result:
Notes:
|