getPage()
Purpose
Retrieves a specified range of data records in a view. The selected view defines sorting and filtering of the output. The amount of processing and time required to get complete results can vary widely, depending on whether it fetches related records and the number of rows you specify per page.
Syntax
getPage(string sessionId, string viewId, string filterName, string filterValue, int startRow, int rowsPerPage, boolean useIds);
Parameters
sessionId
A string containing the session ID obtained at log in.
viewId
The original ID of the view.
filterName
The name of the field to filter output using the
filterValue
The value of the field to filter output using the
startRow
An integer representing the number of the data record to start from.
rowsPerPage
An integer representing the number of data records in output.
useIds
A boolean value: if
Output
Selected records as DataObjArr
Permissions Required
View permission for the requested object type.
Example
DataObj[] arr = binding.getPage("7ae747a0e36648ef8bd016eec1502779@46216462", "25513", " lastName", "Grey ", 0, 20, false).getObjects();
for (DataObj obj: arr) {
System.out.println("\nID="+obj.getId()+
" objName="+obj.getObjDefName());
DataField[] fields = obj.getFields();
for (DataField field: fields) {
System.out.println("Name="+field.getName()+
" Value="+field.getValue());
}
}