record = db(db.my_table.id>last_read_id).select(orderby=db.my_table.id, limit=(0,1))
On Fri, Nov 22, 2013 at 7:03 AM, Ruud Schroen <r...@formatics.nl> wrote: > Hi, > > I have a swipe-slider with 4 database records in them. When you swipe to the > left and reach the end of the slider, there will be inserted more content > via AJAX (like a pull to refresh). > > When I try to GET the data, the controller takes the ID of the last slide > given by args. Now i want the controller to fetch the NEXT record that comes > AFTER the given ID. > > Is there a query for this? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.