调用Form时去掉原Form过滤条件
job:
static void Job117(Args _args)
{
Args localArgs;
PurchReqId reqId = "XXXX";
FormRun formRun;
PurchReqTable purchReqTable;
;
localArgs = new Args(formStr(purchReqTable));
localArgs.parmEnum(NoYes::Yes);
localArgs.parm("RemoveFilter");
purchReqTable = purchReqTable::find(reqId);
localArgs.record(purchReqTable);
formRun = classFactory.formRunClass(localArgs);
formRun.init();
formRun.run();
formRun.detach();
}
调用Form purchReqTable的init方法中增加:
if (element.args().parm() == "RemoveFilter")
purchReqTable_ds.query().dataSourceName("PurchReqTable").clearRanges();