Sets a value that determines how text in a field on a page is formatted. For fields that are included in a CueGroup, this property sets the value of the color indicator on the cue.
Page field controls that contain text.
Fields in a CueGroup control.
The following table lists the values and their formatting for text and Cues.
|Value||Text Formatting||Cue color indicator|
|StrongAccent||Blue + Bold||Not applicable.|
|Attention||Red + Italic||Red|
|AttentionAccent||Blue + Italic||Not applicable.|
|Favorable||Bold + Green||Green|
|Unfavorable||Bold + Italic + Red||Red|
This information in this topic mainly pertains to formatting the text on page fields. For information about how to use the Style property for configuring Cues, see How to: Set Up Colored Indicators on Cues by Using the Style and StyleExpr Property.
The Style property works together with the StyleExpr Property value to determine whether the field is formatted. If the StyleExpr Property evaluates to true, then the value of the field is formatted as specified by the Style property.
By default, the Style property is not set.
This property is not supported if one of the following data types is used for the SourceExpr of the field:
On pages, you use the Style property for group, part, field, and action controls. You can change the formatting of a control either statically by setting the property to true or false, or dynamically by using a Boolean variable or a Boolean field on the page. The Boolean field on the page can be either a true/false Boolean or a Boolean expression, such as “Credit Limit > Sales YTD”.
Example: Dynamic Property Change Using a Boolean Field
To make the value in the Balance (LCY) field on customer cards bold green when line discounts are allowed, follow these steps:
Open page 21, Customer Card, with Page Designer.
View the properties of field 22, Balance (LCY).
For the Style property, enter Favorable in the Value field.
For the StyleExpr property, enter Allow Line Disc. in the Value field.
The Allow Line Disc. field is a Boolean field on page 21, Customer Card.
Save the changes on page 21.
Now, when a user selects the Allow Line Disc. check box on a customer card, the format of the Balance (LCY) field value changes to bold green. Otherwise, the field is not formatted.