FormDataSource.displayOption Method [AX 2012]
Sets the text color and the background color for a record in the data source.
public void displayOption(Common record, FormRowDisplayOption options)
Run On
ClientParameters
- record
- Type: Common Table
The record to display by using the specified options.
- options
- Type: FormRowDisplayOption Class
The FormRowDisplayOption object that encapsulates the desired record display properties.
The following example overrides the displayOption method to set display options from a stored profile and to override the background color that is based on the settings for the particular record.
public void displayOption(Common _record, FormRowDisplayOption
_options)
{
JmgProfileTable profile;
profile = _record;
_options.backColor(profile.Color);
super(_record, _options);
}
Community Additions
ADD
Show: