Display Option Method in X++
The displayOption method is used 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)
{
Employee profile;
profile = _record;
if(profile.EmpSalary<=15000)
{
_options.backColor(WinAPI::RGB2int(255,0,0)); // red
}
super(_record, _options);
}
Comments
Post a Comment