See https://stackoverflow.com/a/11275155/440323.
On Wednesday, October 11, 2017 at 12:49:18 PM UTC-4, Baiyo Paulo wrote:
>
>
> db.define_table('store',
> Field('name', 'string'),
> auth.signature,
> format='%(name)s',
> )
>
> db.define_table('stock',
> Field('stock_serial', 'string'),
> Field('stock_location', 'reference store'),
> auth.signature,
> format='%(stock_serial)s of %(stock_location)s',
> )
>
> db.define_table('item',
> Field('item_stock', 'reference stock'),
> Field('name', 'string'),
> Field('cost_price', 'decimal(7,2)'),
> auth.signature,
> format='%(name)s',
> )
>
> i have these three tables, when i create new item, in the drop down store
> id appears, I need the name to appear
> instead of id. help me on what i should do. i am new with web2p.
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.