Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Page.next.promise()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Page.next.promise() for more information.

N/search Module
Page.next.promise()
Method Description: Method used to asynchronously fetch the next segment of data (bounded by search.PageRange). Moves the current page to another range. The promise is complete when the data for this range is loaded or rejected. The parameters and errors thrown for this method are the same as those for Page.next(). For more information on promises, see Promise Object.
Returns: Promise Object
Synchronous Version: Page.next()
Supported Script Types: All client-side scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: 5 units
Module: N/search Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Page.next.promise()

Example:

// Code Example 1
// Add additional code
//...
// In this snippet, myPage is a Page object that encapsulates a page of search results,
// and processPage is the name of a callback function to execute when the promise
// method returns
return myPage.next.promise().then(processPage);
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4492410539.html