Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

PagedData.pageRanges

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=PagedData.pageRanges for more information.

N/search Module
PagedData.pageRanges
Property Description: The collection of search.PageRange objects that divide the entire result set into smaller groups. This property includes page range information with the key and label for rendering. Page range indexes start at 0.
Type: search.PageRange[] This property is read-only.
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=PagedData.pageRanges

Example:

// Code Example 1
// Add additional code
//...
var mySearch = search.create({
type: search.Type.CUSTOMER,
columns: [
'entityid',
'email'
]
});

var myPagedResults = mySearch.runPaged({
pageSize: 10
});

var thePageRanges = myPagedResults.pageRanges;

// Use PagedData.fetch(options) to retrieve a page of results (as a
// search.Page object) by index
var theData = myPagedResults.fetch({
index: 5
});
//...
// Add additional code

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