I just fixed a few bugs and added a page size selection. Please give
it a try.

Thanks,
Nathan

On Dec 16, 1:26 pm, Alexandre Andrade <alexandrema...@gmail.com>
wrote:
> Its works with little changes, since 'self' is not available out your class:
>
> If your datasource is not a join:
>         grid_pessoal.edit_link = lambda row: A('edit', _href=URL(r=request,
> f='custo',
>                                                       args=[request.args(0),
> grid_pessoal.tablenames[0], row['id']]))
>
> 2009/12/15 mr.freeze <nat...@freezable.com>
>
>
>
> > If your datasource is not a join:
> > grid.edit_link = lambda row: A('edit', _href=self.crud.url(f='custo',
> >                                                       args=
> > [request.args(0), self.tablenames[0], row['id']]))
>
> > If it is a join:
> > grid.edit_link = lambda row: A('edit', _href=self.crud.url(f='custo',
> >                                                       args=
> > [request.args(0), self.tablenames[0],
> >                                                             row
> > [self.tablenames[0]]['id']]))
>
> > On Dec 15, 1:10 pm, Alexandre Andrade <alexandrema...@gmail.com>
> > wrote:
> > > I need to personalize edit link to a custom page, where I use
> > request.arg(0)
>
> > >http://localhost/default/custo/11
>
> > > but i need to know what form to use and the id of row. The link would be
> > > like:
>
> > >http://localhost/default/custo/11/custo_pessoal/12
>
> > > how personalize it in
>
> > > grid.edit_link = lambda row: ...
>
> > > ???
>
> > > Thanks in advance.
>
> > > 2009/12/15 mr.freeze <nat...@freezable.com>
>
> > > > This just added: column filtering!  You can now set filters per
> > > > column. This will render dropdowns of all of the possible values for
> > > > your field. The slice has been updated with screenshot and usages
> > > > instructions.
>
> > > > On Dec 12, 7:32 am, villas <villa...@gmail.com> wrote:
> > > > > On Dec 11, 10:13 pm, "mr.freeze" <nat...@freezable.com> wrote:
>
> > > > > > Just added: multiple grids per page is supported now!
>
> > > > > Very useful. Thanks for your further explanations too.
> > > > > -David
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "web2py-users" group.> To post to this group, send email
> > toweb...@googlegroups.com.
> > > > To unsubscribe from this group, send email to>
> > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/web2py?hl=en.
>
> > > --
> > > Atenciosamente
>
> > > --
> > > =========================
> > > Alexandre Andrade
> > > Hipercenter.com
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/web2py?hl=en.
>
> --
> Atenciosamente
>
> --
> =========================
> Alexandre Andrade
> Hipercenter.com

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to