ANS-1600 · PRINTING, PDF & EMAIL TEMPLATES
How to Display Custom Child Records in NetSuite Advanced PDF Templates?
To include custom child record lists in Advanced PDF/HTML Templates, a server-side script is required to load the transaction and pass the child data to the template.
Short answer
Printing custom child records directly from a NetSuite transaction's standard Print button via an Advanced PDF template is not supported, as the template only accesses item data. To display custom child record lists, a script must load the transaction and explicitly pass the child record data to the PDF template, which is then triggered by a custom button.
Scenario
When attempting to generate an Advanced PDF/HTML Template for a transaction, users may find that custom child record lists are not visible or accessible within the template. The standard Print button functionality typically limits the template's data access to transaction items only, preventing the direct display of associated custom child records.
Solution
To enable the printing of custom child records within an Advanced PDF/HTML Template, a scripting approach is necessary. This method bypasses the limitations of the standard Print button by explicitly loading the transaction and its associated custom child records, then passing this comprehensive data to the template.The solution requires the following components:
A script to load the transaction record and its custom child records, then render the Advanced PDF/HTML Template with this data.
A custom button on the transaction form configured to execute the script.
An Advanced PDF/HTML Template designed to display the custom child record list.
Expert NetSuite Support
Need help with this NetSuite issue?
Printing, PDF & Email Templates consulting and configuration support
