*If i am keeping track of cursors, and what if i click last page arrow button, then how do i get the last 20(assume) values ??*
- If we are talking in GAE context, in order to do that, you have to have a reference to the last cursor. I don't think that there is a way on GAE to retrieve the last cursor, so you can create a work-around over this by using a background task which iterates over list of entities and store the first and the last cursor values when new entity is added or existing is updated. I don't think that this is a good idea, because if you have a millions of rows then you have to use tons of CPU time to end this job, and the data that user sees will be in inconsistent state. Why the people that are using your app are going to use that functionality ? I think that simple text search could help them to lookup for the thing that they are looking or maybe some kind of filter to filter data rows. - If are talking about SQL database, then I'm not sure why you ever have to use cursors at all. *if i click prev arrow button then how do i display the last page(here i am understanding that pager holds the previous data so no need of call to the server).* - You can keep a reference to the last cursor position. To be honest, I'm not sure that GWT page functionality is made for GAE or any other datastore that is using cursors. Just pagination and cursors don't fit well together. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mpY5P6bG2bwJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
