why are you saying that vars are unavailable for LOAD ?

On Thursday, April 24, 2014 3:05:20 PM UTC+2, Greg Vaughan wrote:
>
> Hi everyone...
>
> I am using a LOAD function for a notes field in the sidebar of my app. I 
> am able to load the notes for a specific business by hardcoding the id of 
> the business in the controller like so...
>
> @auth.requires_login()
> def note():
>     current==1
>     notes=db(db.notes.business==current).select()
>     return dict(notes=notes)
>
> What I would like to do is have the value of current set to the id var of 
> the current page eg... welcome/default/leads?id=17 <<< THIS
>
> No request.vars are available to the LOAD function however...
>
> How do I achieve this?
>

-- 
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