This topic is locked

Sending entries from 1 add form to another

7/16/2009 12:48:44 PM
ASPRunnerPro General questions
M
mfred author

I am asked to connect 2 add forms that enter data into 2 separate tables. Each form has unique entry fields but also have some common fields. We would like to be able to pass the common information from 1 add form to another.

Example:

Add page 1 has fields A, B, C, D, 1, 2, 3, 4. On submit, we would like add page 2 to load. On add page 2, the fields are A, B, C, D, 5, 6, 7, 8 where A, B, C, D needs to have the same entries as was done in add form 1. But we don't want to require the user to enter the information twice.
Thanks in advance.

J
Jane 7/17/2009

Hi,
save entered values in the session variables in the After record added event and then use these variables as default values on the "Edit as" settings dialog on the Visual Editor tab.

Here is a sample event code:

Session("A") = values("A")

Session("B") = values("B")

Session("C") = values("C")

M
mfred author 7/17/2009

Thanks

M
mfred author 7/27/2009

save entered values in the session variables does not appear as an option for an action in after record added. Is this a custom code?

J
Jane 7/28/2009

yes.

M
mfred author 7/28/2009

What code to I add to save entered values in the session variables?

J
Jane 7/29/2009

Here is a sample event code:

Session("A") = values("A")

Session("B") = values("B")

Session("C") = values("C")



whee A, B, C are your actual field names.

M
mfred author 7/29/2009

Sorry, I got confused.

So I enter

Session("A") = values("A")

Session("B") = values("B")

Session("C") = values("C")

into the after records added
Then I put values("A") as the default for the fields.
Is that correct?

J
Jane 7/30/2009

No.

Use Session("A"), Session("B") or Session("C") as default values on the "Edit as" settings dialog.