//ProdTable msh = MultiSelectionHelper::construct(); msh.parmDatasource(formDs); ttsBegin; prodTable = msh.getFirst(); while(prodTable){ //recIds += strFmt("%1", prodTable.RecId) + ","; select forUpdate prodTableToUpdate where prodTableToUpdate.RecId == prodTable.RecId; prodTableToUpdate.BFPrinted = true; prodTableToUpdate.update(); // NEW PRINT SERVER - START usePortal = true; recIds += strFmt("%1,", PALDC_OfficePrinterClient::AddToQueue( prodTable.RecId, PALDC_OPC_PrintTypes::find(PALDC_OPC_PrintType::ProdTable).RecId, printerPath, // printerName prodTable.ProdId, // printId directPrint, // directPrint directPrintOutput, // directPrintOutput drawingsDownload, // drawingsDownload isProforma, // isProforma false, // printDiscounts printPrices, // printPrices optionalParms, // optionalString1 "", // optionalString2 false, // optionalBoolean1 false)); // optionalBoolean2 // NEW PRINT SERVER - END prodTable = msh.getNext(); } ttsCommit; if(recIds) recIds = subStr(recIds, 0, strLen(recIds) -1); break;