N/render Module
Use the N/render module for printing, PDF creation, form creation from templates, and email creation from templates.
Direct manipulation of the print URL is not supported.
In This Help Topic
N/render Module Members
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Object |
Object |
Server scripts |
Encapsulates an email merge result. |
|
Object |
Server scripts |
Encapsulates a template object that produces HTML and PDF printed forms utilizing advanced PDF/HTML template capabilities. |
||
Method |
Server scripts |
Creates a PDF or HTML file object containing a bill of materials. |
||
Server scripts |
Creates a render.TemplateRenderer object. |
|||
Server scripts |
Creates a render.EmailMergeResult object. |
|||
Server scripts |
Creates a PDF or HTML file object containing a packing slip. |
|||
Server scripts |
Creates a PDF or HTML file object containing a picking ticket. |
|||
Server scripts |
Creates a PDF or HTML file object containing a statement. |
|||
Server scripts |
Creates a PDF or HTML file object containing a transaction. |
|||
Server scripts |
Passes XML to the BFO tag library (which is stored by NetSuite), and returns a PDF file. |
|||
Enum |
enum |
Server scripts |
Holds the string values for supported data source types. |
|
enum |
Server scripts |
Holds the string values for supported print output types. |
EmailMergeResult Object Members
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Property |
string (read-only) |
Server scripts |
The body of the email distribution in string format. |
|
string (read-only) |
Server scripts |
The subject of the email distribution in string format. |
TemplateRenderer Object Members
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Method |
void |
Server scripts |
Adds an XML file or JSON object to an advanced template as a custom data source. |
|
void |
Server scripts |
Uses Query as the renderer's data source. |
||
void |
Server scripts |
Binds a record to a template variable. |
||
void |
Server scripts |
Binds a search result to a template variable. |
||
Object |
Server scripts |
Uses an advanced template to produce a PDF printed form. |
||
void |
Server scripts |
Renders PDF template content as a server response. |
||
string |
Server scripts |
Returns template content in string form. |
||
void |
Server scripts |
Sets the template using the internal ID. |
||
void |
Server scripts |
Sets the template using the script ID. |
||
void |
Server scripts |
Renders HTML template content as a server response. |
||
Property |
string |
Server scripts |
Content of the template. |