On Monday, December 1, 2014 2:23:25 AM UTC-5, Alex Glaros wrote:
>
> Question one:   
>
> This is in controller:
> vars=dict(Alex=99)
>
> This is in view:
> <br>Alex = {{ =response.get_vars.Alex}} <br>
>
>
Assuming the first line is in a call to the URL() function and the view in 
question is that of the linked page, you want request.get_vars, not 
response.get_vars.
 

> Question two:
>
> bAlex var is in controller below:
> db.Suggestion.suggestionTitle.represent = lambda v, r: A(v, _href=URL(
> 'view_specific_suggestion', args=r.id, vars=dict(bAlex=77)))
>
> This is in view:
> vars = {{=request.vars}}<br>
> <br>bAlex = {{request.vars.bAlex}}<br>
>
>
Forgot the "=" -- should be:

{{=request.vars.bAlex}}

Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to