CopyArgs() method will copy args value from one args to another variable
private void run(Args _args)
{
Args salesArgs = Args::copyArgs(_args, new Args());
Args projArgs = Args::copyArgs(salesArgs, new Args());
Map dataSourceValidRecs = new Map(extendedTypeId2Type(extendedTypeNum(RecId)), Types::Record);
if (FormDataUtil::getFormDataSource(salesArgs.record()))
{
FormDataSource formDataSource_ds = FormDataUtil::getFormDataSource(salesArgs.record());
for (Common common = formDataSource_ds.getFirst(true) ? formDataSource_ds.getFirst(true) : formDataSource_ds.cursor();
common;
common = formDataSource_ds.getNext())
{
WHSPostPackingSlipAction postPackingSlipAction = this.constructPostPackingSlipAction(common, salesArgs);
if (postPackingSlipAction.validateCanPackingSlipBePosted())
{
this.determinePackingSlipTypes(postPackingSlipAction.whsPackingSlipType());
dataSourceValidRecs.insert(common.RecId, common);
}
}
}
}
No comments:
Post a Comment