Remove the filter condition when you call the original 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 calling the init method to increase:

if (element.args().parm() == "RemoveFilter")
  purchReqTable_ds.query().dataSourceName("PurchReqTable").clearRanges();

 

Guess you like

Origin www.cnblogs.com/xtwkh1973/p/11131662.html