yeah i put the bracket wrongly. so whats the difference between the args
and the vars and when do we use each of them?
On Sunday, April 17, 2016 at 9:32:20 PM UTC+5:30, villas wrote:
>
> I do not see how this line is valid...
>
> URL('default','caller',args=row.id), [kk, joe])
>
> The brackets do not match?
>
> Vars are normally expressed as a dict. Something like this in your
> template might make more sense.
>
> {{ myvars = {'var1':'kk', 'var2':'joe'} }}
> {{=A('Call Us', _href= URL('default','caller',args=row.id, vars=myvars))
> }}
>
> Note the result would be this (assuming row.id is 1):
> <a href="/emailer/default/caller/1?var1=kk&var2=joe">Call Us</a>
>
--
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.