Field('mysecondaryid', 'integer', default=db.table.mysecondaryid + 1) should work.
-Thadeus On Fri, Jan 15, 2010 at 7:14 AM, Alexandre Andrade <alexandrema...@gmail.com > wrote: > by default, web2py creates a 'id' field, it is autoincremented. > > > > 2010/1/15 ceriox <cer...@gmail.com> > >> hi all, >> i need an autoincremented unic numeric field for make a ticket system >> how i can do it? >> >> thanks for help >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To post to this group, send email to web...@googlegroups.com. >> To unsubscribe from this group, send email to >> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/web2py?hl=en. >> >> >> >> > > > -- > Atenciosamente > > -- > ========================= > Alexandre Andrade > Hipercenter.com > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > >--
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web...@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.