There are at least 3 scenarios I know.
1. You want that after the user makes a change in the SQLFORM it presses 
the submit button and the page and graph updates.
or
2. You want that after the user makes a change in the SQLFORM he doesn't 
have to press the submit button (in this case it would be better to remove 
the button) and the page and graph updates.
or
3. You want that after the user makes a change in the SQLFORM he doesn't 
have to press the submit button (in this case it would be better to remove 
the button) and only the graph updates.

For 1 you need to redirect to itself when pressing the submit button.
For 2 you have to add some javascript to the page and an event to the 
field(s) of the SQLFORM. Something like _OnClick for buttons or _OnChange 
for drop-down lists.
For 3 you have to use AJAX. I don't know enough to help you with this one, 
but just search the forum and the documentation for AJAX.


domingo, 24 de Março de 2019 às 18:29:41 UTC, Suman Roychoudhury escreveu:
>
> the page has 2 sections, 1. a SQL FORM 2. a graph which shows some kind of 
> visualization using data off of the SQL FORM
> I need to dynamically update the graph when the user applies filter on the 
> data in SQL FORM.
>
> need help on how to access the SQL FORM data from another controller 
> action 
> like , request.form.....
>
>
>

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