среда, 9 декабря 2015 г.

How to hide ranges in query for dialog RunBase

I've got the same problem. 

And untull today I resolve this problem by adding 

qbr.addrange()  for index fields on table and after that make them dissapear throgh 

qbr.rangestatus(RangeStatus::Hidden).

But today I found new solution for hiding index fields as ranges in dialog.


All you need it override showIndexFields() method and depend on what ranges in datasource(table) you want to hide, you must return false for those ones.


Here's an example

public boolean showIndexFields(TableId id)
{
    boolean ret = true;
    switch (id)
    {
        case tableNum(DirPerson) :
            ret = false;
            break;
        case tableNum(HcmEmployment) :
            ret = false;
            break;
    }
    return ret;
}

If you'll have any questions, please , send an email, I'll be happy to answer on them!