What I mean 6if there ate 5 items or rows in the db, a user inputs the sixth item. This goes to form row number 6. I can get or retrieve this row unless I manually refresh the db. Could there be another way too such as getting the item from request.vars if I can't get it from the db?
On 15 Nov 2017 7:35 AM, "Maurice Waka" <mauricew...@gmail.com> wrote: > Done that. Still can't get the last item inserted. I keep getting the > second last item updated. > > On 15 Nov 2017 4:10 AM, "Leonel Câmara" <leonelcam...@gmail.com> wrote: > >> I'm not sure I understand what you're doing. However you're not ordering >> your results, so, depending on the database you won't necessarily get >> ordered results. Try adding a order_by=db.post.id to your select. >> >> -- >> 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 a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/web2py/ERqZpKfZgyc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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/d/optout.