Page.prev()
Method Description |
Method used to fetch the previous segment of data (bounded by search.PageRange). Moves the current page to previous range. |
Returns |
Void |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
5 units |
Module |
|
Since |
2016.1 |
Errors
Error Code |
Message |
Thrown If |
---|---|---|
|
Invalid page range. |
The page range is invalid, or when the page is the first page. |
Syntax
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.isLast){
page = page.prev();
...
//Add additional code