This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fetching Records from CachedRowSet based on pagenum?

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to display the records 15 per page and the pages are max 3000.
So i need to use prev and next concept.But how to pass the the page num values to the cachedrowset object?
Everytime its displaying all the records available in the resultset.

crs.populate(rs);
crs.setPageSize(20);
crs.setMaxRows(15);

Thanks
Amarshi



 
Scott Selikoff
author
Saloon Keeper
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call populate() after setting the size and maxRows. Also, maxRow should probably be greater than pageSize.
 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks It worked as you said.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic