Friends, what I do wrong?
I want that user always can see 'name' instead of plain 'id'
In model I have related table with format:
format=lambda r: r.name
And in the master table I define the list:reference field so:
Field('ekosystemtypes', 'list:reference ekosystemtypes',
requires=[IS_NOT_EMPTY(), IS_IN_DB(db, db.ekosystemtypes.id,
'%(name)s', multiple=True)]),
In appadmin in grid I see 'name's - this works well.
In appadmin I see the field together with [+][-] buttons - this works well.
But instead of to see option popup with 'name's,
I see (and user can choose) only plain 'id's.
What I should do better?
Some mistake?
Should I explicitly assign some widget?
or this simple cannot work with list:reference?
Thanks,
Mirek
--
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.