I have 2 tables:

db.define_table('TABLE_1',
Field('name','string'),
format='%(name)s'
)

db.define_table('TABLE_2',
Field('tab_id','reference TABLE_1'),
Field('name','string'),
format='%(tab_id)s %(name)s'
)

Let's say TABLE_1 has an entry like:
id = 1,
name = 'Fred',

=> represented as 'Fred'

And TABLE_2 has an entry like:
id = 1,
tab_id = 1,
name = 'Cousin'

=> represented as '1 Cousin'

I would like to have *TABLE_2*'s format/representation to be '*Fred Cousin*' 
instead of '*1 Cousin*' - may I know if this is possible, and how I can 
achieve this?

Thank you.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to