On Friday, 2 January 2015 20:12:31 UTC, Massimo Di Pierro wrote: > > I think you are asking about this: > > db.define_table( > 'manufacturer', > Field('name'), > format = '%(name)s') > > db.define_table( > 'model', > Field('manufacturer', db.manufacturer), > Field('model'), > format=lambda r: '%s %s' % (r.manufacturer.name, r.model)) # one > hidden query > > db.define_table( > 'shoe', > Field('model',db.model), > Field('purchased','date'), > Field('price','integer'), > format=lambda r: '%s %s' % (r.model.manufacturer.name,r.purchased)) # > 2 hidden queries > > > Ah yes, certainly am. That's a different syntax to the one I found by searching, looks much more understandable that way, thank you.
Trying to make myself a running gear usage tracker app, so I can, well ... track my gear usage :) Thanks very much -- 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.