Hi Anthony,
Thanks for response.
It would be difficult for me to share the exact code (my company specific
data and lot of extra code etc....)
However, I am providing code snippets of the main portions that I feel are
causing this problem and work flow (i have changed the variable names):-
Please let me know, if you still require the exact code, then I'll try to
reproduce it in a small app that can be shared as such.
*INDEX :*
index function from controllers returns options to be populated in select
html column. It uses ajax callbacks to dynamically populate the select
field.
{{extend 'layout.html'}}
<form enctype="multipart/form-data" method="post"
action={{=URL('default','results')}} >
<select name='var1'>
...
<select name='var2'>
...
<input type="submit" value='Submit'>
<input type="hidden" name="testval" value="test" />
</form>
Once the options are selected the results function is called :-
def results():
if (request.vars.testval and session.var1 and session.var2) or
(len(request.vars) == 0):
try:
del session.var1
del session.var2
except Exception : pass
if (request.vars.var1) and (not session.var1):
session.var1 = request.vars.var1
if request.vars.var2 and not session.var2:
session.var2 = request.vars.var2
Then the session data is checked and a grid is created. Results view just
displays the grid data.
Now from the grid data, when I select any row and uses browser back button,
I get this problem.
Thanks
Sarbjit
--
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.