Hello Bob and Max
I need your help (once again...). I need to make a call to for a club , something like the issue of an invoice. The scheme is the same as if the introduction of a bill items. If we take the example of the bill, it would then be the following: With a form to choose and introduce the client, which I will send the invoice, then according to the choice on this form, advancing to a second form for the introduction of products. And here is the trouble begins.
I want to introduce a product and come back another time to the second form without losing the values of variables (which were introduced in the 1st form and passed to the 2st form) that contains customer data for which I am to pass the bill. At the same time, this second Form, which introduce the articles, there is a tab which shows the result of all this, ie, the header of the invoice to the customer and the various rows with the items of articles introduced.
But is not working. I can get the data from the first to the second form, but the problem is that after save the first article, when I come again to the 2nd form, I lose the variable values passed of the 1st form to the 2st.
How can I keep the data of the variables after the show form ?
I'm doing this:
In fisrt form, in submmit
Data To Session
In second form, in load
Session To Data
a custum code to pass the value of variable to the form (like this, $form->data['competicao_convoca']=$competicao_escolha;)
In second form, in submmit
To enter a new line with an article I need to call again the 2nd form
Show form (the same form)
I need your help (once again...). I need to make a call to for a club , something like the issue of an invoice. The scheme is the same as if the introduction of a bill items. If we take the example of the bill, it would then be the following: With a form to choose and introduce the client, which I will send the invoice, then according to the choice on this form, advancing to a second form for the introduction of products. And here is the trouble begins.
I want to introduce a product and come back another time to the second form without losing the values of variables (which were introduced in the 1st form and passed to the 2st form) that contains customer data for which I am to pass the bill. At the same time, this second Form, which introduce the articles, there is a tab which shows the result of all this, ie, the header of the invoice to the customer and the various rows with the items of articles introduced.
But is not working. I can get the data from the first to the second form, but the problem is that after save the first article, when I come again to the 2nd form, I lose the variable values passed of the 1st form to the 2st.
How can I keep the data of the variables after the show form ?
I'm doing this:
In fisrt form, in submmit
Data To Session
In second form, in load
Session To Data
a custum code to pass the value of variable to the form (like this, $form->data['competicao_convoca']=$competicao_escolha;)
In second form, in submmit
To enter a new line with an article I need to call again the 2nd form
Show form (the same form)