Hi,
I have trouble with this:
I would like dynamically change dataGroup on group control in my form.
I have this in active method on my main datasource
public int active()
{
int ret;
ret = super();
if(TrvExpTrans_CostType.valueStr()=="Cost2")
{
DetailGroup.autoDataGroup(true);
DetailGroup.dataGroup("Transaction_Travel4");
element.redraw();
info("test");
}
else
{
DetailGroup.autoDataGroup(true);
DetailGroup.dataGroup("Transaction_Travel5");
element.redraw();
}
return ret;
}
Even if I choose row with costType "Cost2" on form in detail group I still see fields from fieldsgroup "Transaction_Travel5", but I see info test,
that I know that it is into if in good place.
Thanks for help.
*This post is locked for comments
I have the same question (0)