Ok, your form is not over auth_user... Sorry fast reading does that...

You can use session then...

session.volunteer_id = db.table(row_id).volunteer_id

Or

You can passe it as request vars :

URL(..., vars=dict(volunteer_id=db.table(row_id).volunteer_id))

Though, I am not sure you will be able to access it in the latter case
since request.vars.volunteer_id... But I remember had retrieve request.vars
passed into form vars when the name of the vars was exactly the same which
was causing issue in some circonstances, so I avoid passing the value with
the same name.

There is also post_vars that could be use...

Richard


On Thu, Mar 10, 2016 at 3:01 PM, David Orme <[email protected]> wrote:

> That's the problem - the auth_user row _can't_ be retrieved because
> form.vars.volunteer_id is None.
>
> --
> 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.
>

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

Reply via email to