which version of web2py?. was a bug .. update to last from trunk or pass
like string:

columns = ['products.description']

2011/10/21 horridohobbyist <horrido.hobb...@gmail.com>

> I tried columns, but it just seems to be ignored.
>
> Richard
>
> On Oct 21, 1:48 pm, Martín Mulone <mulone.mar...@gmail.com> wrote:
> > yes, but you can use columns instead of fields.
> >
> > 2011/10/21 horridohobbyist <horrido.hobb...@gmail.com>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > No, but I don't want to display the id. Is this mandatory?
> >
> > > Richard
> >
> > > On Oct 21, 1:35 pm, Nate Atkinson <nja.perso...@gmail.com> wrote:
> > > > Have you tried including db.products.id in the fields?
> >
> > > > On Oct 21, 1:30 pm, horridohobbyist <horrido.hobb...@gmail.com>
> wrote:
> >
> > > > > I'm trying to specify exactly which fields to display in a grid,
> but I
> > > > > just can't get the syntax right. And the docs are of no help.
> >
> > > > > Here's what I tried, among other things:
> >
> > >
> SQLFORM.grid(db.products,deletable=False,editable=False,create=False,csv=Fa
> > > lse,searchable=False,details=False,maxtextlength=100,fields=[
> > > db.products.na me,db.products.description,db.products.price])
> >
> > > > > No matter what I put into "fields=", I keep getting an error. What
> is
> > > > > the correct syntax, please?
> >
> > > > > Thanks,
> > > > > Richard
> >
> > --
> >  http://martin.tecnodoc.com.ar
>



-- 
 http://martin.tecnodoc.com.ar

Reply via email to