--- Lars Johansson <[EMAIL PROTECTED]> wrote: > Hello everyone, > we have a webapp with some reports spanning multiple > pages and using offset/limit to fetch data into a > Collection. I must say I find is somewhat tricky to > access the counter in an iterator to do render were > in the total resultset the user is. Does anyone hav > experience or code for this type of work? > A typical example would be to have two parameters > keeping track of where one is, offset and limit and > pass it to a finder. On each page I would like a > counter increasing by each row, 1-25 on page one, > 26-50 on page two etc.
<webwork:iterator value="foo.bar" status="'myStatus'"> <webwork:property value="myStatus/count"/> - count ( one-based ) <webwork:property value="myStatus/index"/> - index ( zero bazed ) </webwork:iterator> regards, ===== ----[ Konstantin Pribluda ( ko5tik ) ]---------------- Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programieren, Kentnisse in OpenSource-Bereich ----[ http://www.pribluda.de ]------------------------ __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork