Right. I would not use crud.select(table,query) but simply
rows=db(query).select()

On Nov 9, 2:38 pm, Carlos <[email protected]> wrote:
> Hi Massimo,
>
> Thanks, but do you mean to loop through the rows after calling
> crud.select (which returns a list a of dictionaries)?.
>
> Or what do you mean by 'build your row' in each loop?.
>
> Is it possible to create a dummy/transient table field in order to
> assign the required dynamic value during this loop?, or should I just
> add the dictionary key/value directly to each dictionary in the list
> returned by crud.select?.
>
> Btw crud.select internally uses SQLTABLE, or not?.
>
> Thanks,
>
>    Carlos
>
> On Nov 9, 12:43 pm, mdipierro <[email protected]> wrote:
>
> > Sorry there is not. You may better off looping
>
> > {{for row in rows:}}
> > ... build your row ...
> > {{pass}}
>
> > On Nov 9, 12:37 pm, Carlos <[email protected]> wrote:
>
> > > Hi all,
>
> > > I'm using crud.select / SQLTABLE, and I need to show one column with
> > > links/actions generated dynamically based on conditions found for each
> > > row data.
>
> > > I believe I can not use 'represent' because that's linked to a single
> > > field only (lambda field: ...).
>
> > > Is there something like "lambda row: ..." where I can access all
> > > necessary fields for each row and show dynamic options based on each
> > > row data?.
>
> > > Can virtual fields provide the dynamic behavior I need for
> > > crud.select / SQLTABLE?.
>
> > > Any ideas?.
>
> > > Thanks!,
>
> > >    Carlos
>
>

Reply via email to