runbase batch query range values not retained properly , i am trying to pass range that is select by the user with other locked range i used in my coded query as below code and image
_InitQuery=new Query();
_QueryBuildDataSource=_InitQuery.addDataSource(tableNum(Payslip));
_PaidRange=_QueryBuildDataSource.addRange(fieldNum(Payslip,Paid));
_PaidRange.value(queryValue(PaidPayslip::No));
_PaidRange.status(RangeStatus::Locked);
_PostedRange=_QueryBuildDataSource.addRange(fieldNum(Payslip,Posted));
_PostedRange.value(queryNotValue(PostedPayslip::Posted));
_PostedRange.status(RangeStatus::Locked);
_PaySettled=_QueryBuildDataSource.addRange(fieldNum(Payslip,Settled));
_PaySettled.value(queryValue(NoYes::No));
_PaySettled.status(RangeStatus::Locked);
_Queryrun=new SysQueryRun(_InitQuery);
is is the payment statement is not retain and assigned to the query in run time execution
any suggestion or help is appreciated
*This post is locked for comments