I've found a solution using the following:-
{{
for row in rows:
a =results?id=
b = str(row.id)
c = a + b
}}
{{=A('click' , callback=URL(c), target="flash")}}
{{pass}}
On Sunday, 15 March 2015 21:38:23 UTC, Garry Smith wrote:
> Is there a way of adding a id number from a database in the following
> callback?
>
> {{=A('click me', callback=URL('results?id='))}}ing:-
>
> This is what I want to do, but cannot get it to work,not sure if its
> possible.
> I just want to add row.id to the end of the url.
>
> {{for row in rows}}
>
> {{=A('click me', callback=URL('results?id={{row.id}}'))}}ing:-
>
> {{pass}}
>
>
>
--
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.