ServerResponse.writePage(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Generates a page.

Returns

void

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

None

Module

N/https Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.pageObject

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

SSS_MISSING_REQD_ARGUMENT

Missing a required argument: {param name}

The options.pageObject parameter is not specified.

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/https Module Script Samples.

          // Add additional code 
...
var myPageObj = serverWidget.createList({
    title: 'Simple List'
});

ServerResponse.writePage({
    pageObject: myPageObj
});
...
// Add additional code 

        

Related Topics

https.ServerResponse
N/https Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices