Using Advanced Template Formatting Programmatically

Important:

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

General Notices