Tuesday, January 26, 2021

AX - How to set conditionally grid font type to bold

..on DataSource override displayOption() method:
public void displayOption(Common _record, FormRowDisplayOption _options)
{
    DM_ProductivityDuplicate dm_productivityDuplicate1;
    real iPercent;

    dm_productivityDuplicate1 = _record;

    if ( dm_productivityDuplicate1.cieb_duplicate == NoYes::Yes ) _options.fontBold( true );

    super( _record, _options );
}

No comments:

Post a Comment