Files
VSC/X++/PALDC_OPC_PrintQueue/ProdTable.xpp
T
claudio 368d6fafea Issue
Code backup
2026-05-10 16:59:01 +02:00

36 lines
2.3 KiB
Plaintext

//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;