if not session.form1_data:
form1 code
if form1.accepted:
session.form1_data = ...
if session.form1_data:
form2 code
if form2.accepted:
del session.form1_data
Anthony
On Monday, December 21, 2015 at 10:23:15 AM UTC-5, Martin wrote:
>
>
>
>
>
> mandag 21. desember 2015 16.12.14 UTC+1 skrev Anthony følgende:
>>
>> I was hoping I could avoid redirect. Have to redirect to self then, and
>>> then keep output from form1 in session, so than could be used as input in
>>> form2.
>>>
>>
>> There's no reason to redirect to self. Just store what is needed from
>> form1 in the session and proceed with the code for form2. You only need a
>> redirect if the forms will be handled via different actions.
>>
>> Anthony
>>
>
>
> That is what I was trying to do.
> From the query of form1 I use the result to create a list form as form 2.
> (all good until now)
> the problem start when I am executing form 2. I am not able to read /
> request the vars from form 2.
> When building form 2 it's just the result from form1. No need to store
> anyting initially - it's just a list with a bolean field
> so I can choose record to insert into db.
>
> but when form 2 execute it is not getting vars and just jump to "start" of
> function and giving me form 1 again.
>
> Martin
>
>
>
>
>
>
>
--
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.