openPrintLayout
To open a record in a given layout in the print layout editor
This function will open a specific print layout of a given record.
openPrintLayout(nid, string)
void
1
openPrintLayout(this, "Invoice")
Result: Will open the print layout called Invoice of the current record.
printAndSaveRecord
, which saves a given record in a given layout as PDF in the internal file system and returns the path as a link.
printRecord
, which prints to a PDF from a given record in a given layout and opens the file with a program set as default.Last modified 11mo ago