FormDataSource.displayOption Method
Sets the text color and the background color for a record in the data source.
Syntax
public void displayOption(Common record, FormRowDisplayOption options)
Run On
Client
Parameters
- 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.
Remarks
This method is executed one time for each record before the record is displayed in a form.
The displayOption method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click displayOption.
Examples
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);
}