将临时表挂到FormDataSource
Args args;
FormDataSource fds ;
MultiSelectionHelper multiSelectionHelper;
//
Tb lineTb;
args= this.args();
fds = args.record().dataSource();
multiSelectionHelper = MultiSelectionHelper::construct();
multiSelectionHelper.parmDatasource(fds);
lineTb = multiSelectionHelper.getFirst();
while (lineTb)
{
//lineTmp.clear();
lineTmp.LineRecId = lineTb.RecId;
lineTmp.Insert();
lineTb = multiSelectionHelper.getNext();
}
IWS_SalesContrctReleaseTmp.linkPhysicalTableInstance(lineTmp);