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.
Note:
The parameters and errors thrown for this method are the same as those for Page.next(). For more information about promises, see Promise Object. |
Returns |
|
Synchronous Version |
|
Supported Script Types |
Client scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
5 units |
Module |
|
Since |
2016.1 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete promise script example, see Promise Object.
// Add additional code
...
// In this sample, 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