Field('mysecondaryid', 'integer', default=db.table.mysecondaryid + 1)
should work.-Thadeus On Fri, Jan 15, 2010 at 7:14 AM, Alexandre Andrade <[email protected] > wrote: > by default, web2py creates a 'id' field, it is autoincremented. > > > > 2010/1/15 ceriox <[email protected]> > >> 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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<web2py%[email protected]> >> . >> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<web2py%[email protected]> > . > 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 [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

