ServerResponse.writePage(options)
|
Method Description |
Generates a page. |
|
Returns |
void |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
|
Governance |
None |
|
Module |
|
|
Parent Object |
|
|
Sibling Object Members |
|
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
|
Parameter |
Type |
Required / Optional |
Description |
Since |
|---|---|---|---|---|
|
|
serverWidget.Assistant | serverWidget.Form | serverWidget.List |
required |
A standalone page Object in the form of an assistant, form, or list. |
2015.2 |
Errors
|
Error Code |
Message |
Thrown If |
|---|---|---|
|
|
Missing a required argument: {param name} |
The |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/http Module Script Samples.
// Add additional code
...
var myPageObj = serverWidget.createList({
title: 'Simple List'
});
ServerResponse.writePage({
pageObject: myPageObj
});
...
// Add additional code