upsert value

gatticlaudio

Claudio
Hello, I need to use the "upsert" inserting in the value, an element of another form. More precisely, of the predecessor form to which the upsert performs.
That's possible?
Thank you
 
the translator is not good, sorry. Again:
reference elements of the previous form to which I am now.
Example: Form_a calls Form_b, there invoke an element of Form_a.
I do not know if it is possible or when changing form the value of the elements is lost.
Thank you.
 
Assuming there is a relationship between the two, then you can upsert. For example, if there is an element on form_b which points to the primary key of form_a, or vice versa.

So it depends what you mean by "form_a calls form_b". So if, for example, after submitting form_a the user is redirected to form_b, you could pass the rowid (PK) of form_a to form_b on the query string of the redirect, like &formb___form_a_id={rowid}, which would set the 'form_a_id' element on form_b, pointing to form_a. You could then use that element as the FK in the upsert settings.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top