Conditionally Set Attributes
\The Sandbox \PB History & Future \New in PB 4 \DW and Reporting \Conditionally Set Attributes
Select Painter
Composite
Reports
Conditionally Set
Attributes
Crosstab
Enhancements
Displaying
Reports
GetChild For
Composites
Grid Style Reports
Nested Reports
Crosstab & Grid
Options
DW Painter
Return Icon
DataWindow
Attributes
DW Object
Attributes
DataWindow
Dialog
New PB.INI
DW Variable
New Print Dialog
Newspaper
Columns
Performance
Print Preview
Printing Features
Referencing
Computed Fields
Referencing
Retrieval Args
Save As Dialog
Saving Reports
As Files
Sliding Columns
Group Dialog
Sort Dialog
Specifying
Data Sources
Suppress
Repeating Values

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) 

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com