Re: [web2py] fieldname variable in DAL expression

2016-06-22 Thread Massimiliano
Should be: *db[tablename][afield]* On Wed, Jun 22, 2016 at 11:40 AM, Pierre wrote: > Hi, > > Is there a way to pass a fieldname variable in a DAL expression other than > the one described in the w2p book : > > *db[tablename].insert(**{fieldname:value**})* > > when tablename varies in an expres

[web2py] fieldname variable in DAL expression

2016-06-22 Thread Pierre
Hi, Is there a way to pass a fieldname variable in a DAL expression other than the one described in the w2p book : *db[tablename].insert(**{fieldname:value**})* when tablename varies in an expression like: *db[tablename].afield* it is likely that *afield* should do the same how do I enable *