I do not understand what you mean by "return to the grid with a value". 
Anyway, you can't because the gird urls are signed.

On Sunday, 31 May 2015 08:07:37 UTC-5, Alex Glaros wrote:
>
> I want to send user to a child grid function to select a row value and 
> then return to the parent function with the value.
>
> Right now, I just send user to the child grid controller first from the 
> main menu, then user clicks button in the selected row, and a redirect 
> takes him to the parent controller.
>
> I think I can just embed a call to the child controller in the parent 
> controller so that I don't have to send user to child controller first, but 
> what is the syntax for exiting child function with the value?
>
> The button in child function for the current way looks like this:
>
> links=[dict(header='Add relationship',  body=lambda row: A('Assign person 
> to role',_class="btn btn-success btn-mini", _href=URL(
> 'add_person_to_roles_and_relationships', args=row.id, vars=request.vars
> )))], links_placement = 'left')   
>     return dict(grid=grid)
>
> If call to child is inside the parent controller what is syntax for 
> exiting child function and passing vars to parent?  Currently, it exits 
> with a redirect.  Also, what does the "return" statement look like in the 
> child function?
>
> The structure I want looks something like this:
>
> PARENT_FUNCTION():
>     child_function, args=args # this child function selects a value parent 
> uses below
>     continue doing work inside the parent function....
>     return locals()
>
> thanks,
>
> Alex Glaros
>

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