Wednesday, August 12, 2009

Style property in NAV 2009 Pages

Style Property

This property sets a value that determines how a field on a page is formatted. This applies to page controls that have text
Property Value:
Value Format in edit mode Format in view mode
Strong Bold Bold
Attention Red Default
Favorable Bold + Green Bold
Unfavorable Bold + Italics + Red Bold + Italics

Remarks:
If the StyleExpr Property evaluates to true, then the value of the field is formatted as specified by the Style property.
By default, this property is not set.
This property is not supported if the data type of the SourceExpr of the field is one of the following:
Code
Boolean
Binary
BLOB
GUID
RecordID
The Style formatting that is applied to a page in Edit mode, is different than the formatting that is applied in View mode.



StyleExpr Property

This property sets whether the Style Property is applied.
Applies To:
Page controls that have text

Remarks:
If the StyleExpr property evaluates to true, then the value of the field is formatted as specified by the Style Property. You can use either true, false, or a variable that evaluates to true or false. The default value is false.

No comments: