Monday, November 7, 2016

How to change colour based on condition in form grid

Form > Datasource>Methods>displayOption

public void displayOption(Common _record, FormRowDisplayOption _options)
{
    Tablename    table;

    if(_record.RecId)
    {
        select  table where table.recid == _record.RecId;
        if(table.Status  == Status::Posted)
        {
            _options.textColor(WinAPI::RGB2int(250,1,1));
        }
    }
    super(_record, _options);
}

No comments:

Post a Comment

update_recordset with joins

 update_recordset with joins update_recordSet storeTransfer         setting      TransactionId = transfertable.TransferId     join transfert...