the requires my not be necessary, i have not tested it. when i have the
represent it works for me in SQLTABLE. i have not used the other
visualizations.
On 01/18/2011 05:08 AM, web2py noob wrote:
I have to say that the represent=lambda x: db.stuff[x].name seems to
works only for webgrid plug
I have to say that the represent=lambda x: db.stuff[x].name seems to
works only for webgrid plugin, but not for jqgrid (plugin_wiki) nor
SQLTABLE builtin function. it's this how is must be or is a bug?
On 18 ene, 02:12, howesc wrote:
> (...)
Hi Howesc, If I understand well, as I put in the links,
requires=[IS_NOT_EMPTY(),IS_IN_DB()] would not needed if I already
defined the table as:
db.define_table('table01',
Field('name','string'),
format='%(name)s'
)
db.define_table('table02',
nope, i did a test and confirmed that this behavior is the same for older
and newer versions of web2py.
so to get the name field from the referenced table to show, you need to add
a represent parameter to your field construction:
db.define_table('stuff',
Field('name', 'string', notnull=True
If there was a change of behavior can you please post code that has
changed behavior? If this happened was a bug not intentional. There
was a change of behavior in appadmin and that was intentional.
On Jan 17, 3:07 pm, howesc wrote:
> with the latest version of web2py i have found that you have t
with the latest version of web2py i have found that you have to use
"represent" on the field as well. see my post here:
https://groups.google.com/d/topic/web2py/dnqKwf9Zxv0/discussion i think it
may be a bug though i'm not sure if the behavior is correct or not.
cfh
On 17 ene, 16:19, web2py noob wrote:
> can you help me with this, please? i can't find why
> producto.subcategoria doesn't represents in a string format.
> in jqgrid and sqltable shows the producto.subcategoria reference like
> an integer and should be represented as %(nombre)s, but it doesn't...
7 matches
Mail list logo