Multiple records print with button
Hi,
Is there a way to print multiple pages (records) in a button ?
For one page, it already works with this :
let myPdf := printRecord(this, "name");
Actually, I can already do it with the print button in ninox and then select the "all" function but I would like to do it in a button.
Thanks a lot.
Lorenz
32 replies
-
Please find an example of printing in the attached database. See the ViewEvent table.
Lots of news on this page:
- The customer list is retrieved from the 'Customer list' field. This means that the print button takes into account the filter and the order of the list.
- The download button asks for the name of the file before downloading it.
- and, of course, the print button allows you to print multiple records on the same report.
-
,
I've found a solution to make the printAndSaveMutiRecord function work again:"---------------------------- printAndSaveMutiRecord -----------------------------"; function printAndSaveMutiRecord(strNids : text,reportName : text) do var n := split(replace(strNids, " ", ""), ","); #{:text:callback var config = { nid: n[0], nids: n, reportName: reportName, printAllAndClose: !0 }; var old = database.printRich; database.printRich = (e, t) => { old.call(database, e, (err, result) => { callback(database.loadFileURL(result.id, e.name, "application/pdf", !0)); }) database.printRich = old } schemas.schemas.envConfig.openDesigner(database, config); }#; end;
Content aside
- yesterdayLast active
- 32Replies
- 3150Views
-
5
Following