It is simply how that record id will be displayed when used in a
foreign key.
e.g.
table colors:
id: 1, name: red,
id: 2, name: yellow,
table cars:
id: 1, descr: sport, color_id: 1
When you create a form for 'cars', how would you like the color_id
field to appear?
a) a drop-down box showing id numbers 1,2
b) a drop-down box showing red, yellow
Most people would say b). Therefore they use record representation to
enable this to happen automatically.
db.define_table('colors', Field('name'), format='%(name)s')
On May 15, 5:39 am, pbreit <[email protected]> wrote:
> I still don't understand Record Representation. Is there a plain english
> description or, better, examples of what it actually does?