//ProdTableBadge msh = MultiSelectionHelper::construct(); msh.parmDatasource(formDs); record = msh.getFirst(); switch(record.TableId) { case tableNum(ProdTable): //TODO Manca da gestire il progetto ed il bottone per lanceiare la stampa prodTable = record; /*while(prodTable){ recIds += strFmt("%1", prodTable.RecId) + ","; prodTable = msh.getNext(); } listOfRecIdsToPrint = strSplit(recIds, ","); liRecIdsToPrint = new ListIterator(listOfRecIdsToPrint); while(liRecIdsToPrint.more())*/ while(prodTable){ prodTable.clear(); select prodTable where prodTable.RecId == liRecIdsToPrint.value(); /* recordToPrintRecId = prodTable.RecId; printType = PALDC_OPC_PrintTypes::find(PALDC_OPC_PrintType::ProdTableBadge).RecId; printDescription = strFmt("Bindello %1", prodTable.ProdId); optionalStr1 = optionalParms; PALDC_OfficePrinterClient::AddToQueue( recordToPrintRecId, printType, "", // printerName printDescription, // printId directPrint, // directPrint directPrintOutput, // directPrintOutput drawingsDownload, // drawingsDownload isProforma, // isProforma printDiscounts, // printDiscounts printPrices, // printPrices optionalStr1, // optionalString1 optionalStr2, // optionalString1 optionalBoolean1, // optionalBoolean1 optionalBoolean1); // optionalBoolean2 */ // NEW PRINT SERVER - START usePortal = true; recIds += strFmt("%1,", PALDC_OfficePrinterClient::AddToQueue( prodTable.RecId, PALDC_OPC_PrintTypes::find(PALDC_OPC_PrintType::ProdTableBadge).RecId, printerPath, // printerName prodTable.ProdId, // printId directPrint, // directPrint directPrintOutput, // directPrintOutput drawingsDownload, // drawingsDownload isProforma, // isProforma false, // printDiscounts printPrices, // printPrices optionalParms, // optionalString1 "", // optionalString1 false, // optionalBoolean1 false)); // optionalBoolean2 // NEW PRINT SERVER - END liRecIdsToPrint.next(); } if(recIds) recIds = subStr(recIds, 0, strLen(recIds) -1); break;