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 <[email protected]>
> 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 <[email protected]>
> 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 <[email protected]>
> >
> >
> >
> > > 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 <[email protected]> wrote:
> > > > On Dec 11, 10:13 pm, "mr.freeze" <[email protected]> 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
> [email protected].
> > > To unsubscribe from this group, send email to>
> [email protected]<web2py%[email protected]>
> <web2py%[email protected]<web2py%[email protected]>
> >
> > > .
> > > 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<web2py%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.