Field('mysecondaryid', 'integer', default=db.table.mysecondaryid + 1)
should work.
-Thadeus
On Fri, Jan 15, 2010 at 7:14 AM, Alexandre Andrade wrote:
> by default, web2py creates a 'id' field, it is autoincremented.
>
>
>
> 2010/1/15 ceriox
>
>> hi all,
>> i need an autoincremented unic nu
by default, web2py creates a 'id' field, it is autoincremented.
2010/1/15 ceriox
> 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
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
3 matches
Mail list logo