Re: [web2py] Re: two forms submitted into the same cotroller

2014-09-10 Thread Andrey Khmelevskiy
Thank Cliff and Massimo for your help. I have finally make in very similar fission: I have 2 divs, controller1 with static form with id=1 that inserted in div1, another controller2 that triggers by w2p_component (ajax) and generates form with id=2 and inserted to div2 but all input fields of this

[web2py] Re: two forms submitted into the same cotroller

2014-09-02 Thread Cliff Kachinske
Here is what I do. Your page should have one form only. Make 2 divs. Top div has your fixed fields including the one that triggers the variable content. Use jquery to catch the change event for the field. When the field changes send an Ajax request to the server. Let the server build the

[web2py] Re: two forms submitted into the same cotroller

2014-08-31 Thread Andrey K
Thanks Massimo. Here is my reformatted question(hope it will be more understandable): I want to present two input sets of information coming from server into two sections of the same view (div1 and div2). First input set is generated based on user choice control, that presented at the

[web2py] Re: two forms submitted into the same cotroller

2014-08-31 Thread Massimo Di Pierro
This helps but I still have some questions... where is form? what is tab1? is this used the output of two generated SQLFORM? or the actual source view? On Sunday, 31 August 2014 14:45:02 UTC-5, Andrey K wrote: Thanks Massimo. Here is my reformatted question(hope it will be more

[web2py] Re: two forms submitted into the same cotroller

2014-08-30 Thread Andrey K
Hi Massimo, Here is my dilemma: I have one view with 3 tabs (DIVS), where I would like to have one tab for user tool selection and two forms in 2 separated tabs(DIVs) : 1)static form and 2)dynamic form(generated based on user selection in first tab). Also I would like to submit all information

[web2py] Re: two forms submitted into the same cotroller

2014-08-30 Thread Massimo Di Pierro
I believe your problem is the XY problem. http://mywiki.wooledge.org/XyProblem Y = submitting to forms to the same controller. Do no ask about Y. What it your original problem X for which you think Y is a good solution? On Saturday, 30 August 2014 15:24:16 UTC-5, Andrey K wrote: Hi Massimo,

[web2py] Re: two forms submitted into the same cotroller

2014-08-29 Thread Massimo Di Pierro
Something is wrong here. Can you explain at higher level what are you trying to achieve? On Friday, 29 August 2014 16:10:59 UTC-5, Andrey K wrote: Dear list, I have two related questions: 1. Basically I have one view (C) which contains two forms A and B. The dynamic form A is created by