You could but it is available in rows.colnames
Note that you can define a virtual field
db.MyDatabase.MyComputedField = Field.Virtual('MyComputedField', lambda r: r
.MyDatabase.Value*2)
and then access it via row.MyComputedField for any row in rows.
Denes
On Saturday, December 5, 2015 at 11:11:00 AM UTC-5, Henk Hendricks wrote:
>
> On 2015-12-04 5:05 , Massimo Di Pierro wrote:
>
> x = db.MyDatabase.Value*2
> rows = db(db.MyDatabase.Value).select(x)
> print rows[0][x]
>
> Ok, thanks that should perfectly in my controller.
>
> But does this mean that if I want to use this my view, that I need to
> transfer 'x', to select correct field from a row?
>
>
> --
> Greetings,
>
> Henk Hendricks
>
>
--
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.