Page.next()

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Method used to fetch the next segment of data (bounded by search.PageRange).

Moves the current page to next range.

Returns

Void

Supported Script Types

Client and server scripts

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

Governance

5 units

Module

N/search Module

Since

2016.1

Errors

Error Code

Message

Thrown If

INVALID_PAGE_RANGE

Invalid page range.

The page range is invalid, or when the page is the last page.

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/search Module Script Samples.

          //Add additional code 
...
while (!page.isFirst){
page = page.next();
...
//Add additional code 

        

Related Topics

search.Page
N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices