Kamis, 10 Februari 2022

Highlight record with background color

Over write method displayOption di Datasource.

Contoh : 

public void displayOption(Common _record, FormRowDisplayOption _options)
{
    PSMLeadTimeItem         psmleadtimelocal;
    //super(_record, _options);
    psmleadtimelocal   =  _record as PSMLeadTimeItem;
    if(psmleadtimelocal.min == 0)
        _options.backColor(WinApi::RGB2int(255,255,0));//jadi kuning
    else
        _options.backColor(WinAPI::RGB2int(255,255,255));
}

Tidak ada komentar:

Posting Komentar

Another querybuildrange with JOIN Clause

Here's an example query with 2 tables using JoinMode. You can implemented this sample codes in a Datasource's form, overide the exec...