not sure I understand. perhaps this: max_id=db(db.table.questionary_id==1).select (db.table.question_number,orderby=~db.question.number,limitby= (0,1)).first().question_number
db.table.question_number.default=max_id+1 db.table.question_number.writable=False form=crud.create(db.table) On Sep 26, 6:01 pm, ProfessionalIT <lsever...@gmail.com> wrote: > mdipierro, > > But, how to get this value in a create crud form ? > > Two questions, that can resolve my problem: > > 1) The create crud method has a "pre-action" where I can manipulate > this value ? > If yes: > 2) How to set this value in a form generated by a > crud.create method ? > > My main problem is: I have that show this "incremented value" in a > create form. This is my problem !. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---