is it ok if i see only id in the drop-down filed writing db.tecaj.oseba.requires=IS_IN_DB(db,'oseba.id')
and ime priimek when db.tecaj.oseba.requires=IS_IN_DB(db,'oseba.id','%(ime)s %(priimek)s') On Oct 4, 4:20 pm, mdipierro <[email protected]> wrote: > This > > db.tecaj.oseba.requires=IS_IN_DB(db,'oseba.id','%(ime)s % > (priimek)s') > > is automatic for all referencing fields when you do > > db.define_table('oseba',...,format='%(ime)s %(priimek)s') > > You do the former manually only if you need a more complex > requirement. > > On Oct 4, 9:14 am, andrej burja <[email protected]> wrote: > > > how or where should i define format representation for records > > > if i put it in db.define_table: > > db.define_table('oseba', Field('ime'), Field('priimek'), > > Field('naslov'), Field('email',label='Elektronski naslov'), > > format='%(ime)s %(priimek)s') > > > there is a id reference in SQLTABLE (notimepriimek) > > > but if i put it in requires > > db.tecaj.oseba.requires=IS_IN_DB(db,'oseba.id','%(ime)s %(priimek)s') > > > there is aimepriimek reference in SQLTABLE > > > so it should be put in requires. or am i doing/understanding something > > wrong? > > where does the setting in db.define_table come in use?

