Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Page.isLast for more information.
N/query Module
Page.isLast
Property Description:
Whether the page is the last of the paged query results.
Type:
boolean (read-only)
Module:
N/query Module
Parent Object:
query.Page
Sibling Object Members:
Page Object Members
Since:
2018.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Page.isLast
Example:
// Code Example 1
// Add additional code
//...
var myCustomerQuery = query.create({
type: query.Type.CUSTOMER
});
myCustomerQuery.columns = [
myCustomerQuery.createColumn({
fieldId: 'entityid'
}),
myCustomerQuery.createColumn({
fieldId: 'firstname'
}),
myCustomerQuery.createColumn({
fieldId: 'email'
})
];
var myPagedResults = myCustomerQuery.runPaged({
pageSize: 10
});
var iterator = myPagedResults.iterator();
iterator.each(function(resultPage) {
var currentPage = resultPage.value;
var isLast = currentPage.isLast;
return true;
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1510878292.html