02-03-2011 05:24 AM
var paging =
{
maxItems: 10,
skipCount: 0
};
That is, on the server side if I set the maxItems, the search will stop when maxItems is reached. But returning this to the DataTable, the DataTable has no way of knowing that there actually is a larger set available, and there is no paginater pages created. var paging =
{
maxItems: 100, //Can possibly skip entirely
skipCount: 10 //from passed in DataTable, page 2 of max 10 per row
};
in this case, I also return the max number of hits to the DataTable. Paginator is created."paging":
{
"totalItems": ( searchresults.length+scipcount),
"maxItems": 10,
"skipCount": (the current value of skipped items)
}
Also, loop the searchresults and only return the first maxItems, so that you do not return an an unnecessary large result set.
02-03-2011 08:52 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.