Dear All;
I have Form A which has the following grid

and form B which is called by form A

i want to filter form B based on status column whenever Form A record "steptype" field have different status
my code was
if (element.args().caller() && element.args().dataset() == tableNum(ADVChecksMultiPost))
{
if (element.args().refField(ADVChecksMultiPost.ADVCHKStepTypeNew) == ADVCHKStepType::UnderCollection)
{
this.query().dataSourceTable(tableNum(ADVChecks)).addRange(fieldNum(ADVChecks, ADVCHKStepType)).value(enum2str(ADVCHKStepType::Recieve));
}
}
the third line doesn't seem to be working