Using Advanced Template Formatting Programmatically
SuiteScript doesn't support direct access to the NetSuite UI through the Document Object Model (DOM). You should access the NetSuite UI only by using SuiteScript APIs. For information about using SuiteScript APIs to customize the UI, see SuiteScript 2.x Custom Pages.
SuiteScript supports a template engine object and related methods so you can apply advanced template format capabilities programmatically. For SuiteScript 2.0, see render.TemplateRenderer.
In addition, the SuiteScript functions render.bom(options) render.packingSlip(options) render.pickingTicket(options) render.statement(options) render.transaction(options) support the use of advanced templates. If you associate an advanced template with the custom form saved for a transaction and use this API to print the transaction, the advanced template is used to format the printed transaction.
You can use SuiteScript to apply advanced templates to printed records that aren't transactions. See Using SuiteScript to Apply Advanced Templates to Non-Transaction Records.
Related Topics
- Advanced PDF/HTML Templates
- Account-Specific Domains in Advanced Printing Templates
- Enabling the Advanced PDF/HTML Templates Feature
- Reviewing Available Advanced Templates
- Advanced PDF/HTML Multi-Currency Statement Templates
- Setting Custom Forms to Use Advanced Templates
- Advanced Templates Customization in the Template Editor
- Scripting with Advanced Templates
- Changing the Script ID of a Custom Template
- Advanced Templates for Printing Saved Search Results
- Advanced Templates Support for Company Printing Preferences
- FAQs for Advanced Printing