|
Instead of modifying DataWindow attributes in scripts with Modify, you can conditionally set the attributes for DataWindow objects and bands using the Attribute Conditional Expressions dialog.
When you click the right mouse button in the DataWindow painter on an object or band, a new item, Attributes, displays on the menu. Selecting this menu item opens the Attribute Conditional Expressions dialog shown below. In this dialog you can specify the values for attributes of the DataWindow. The values can be expressions or constants.
Following is an example for the color attribute of salary column in a employee information DataWindow. The expression sets the text color for salary to red for all employees in Department 100:
if(dept_id = 100,255,0)
|