eventi
|
| Posted: 07/08/2002, 1:30 PM |
|
I have a "Create Website" form which continues to a "Create Admin User" form. I need one of the fields from the first form to be available in a hidden field in the second form, but I can't figure out how to do it.
For example:
newsite.cpp has a record tied to the "site" table, asking for sitename and other stuff. When you click "Add", you go to newuser.cpp, with a form tied to the "user" table, which has a field "site_id" to associate it with the site table.
HELP!
|
|
|
 |
CodeCharge Support
|
| Posted: 07/09/2002, 6:49 AM |
|
Hello,
in case "site" and "users" tables are linked on any field you can store the newly entered site_id in session variable. To obtain site_id value and put it into session create After Insert event. Please refer to the GotoCode article that explains how to retrieve primary key value: http://www.gotocode.com/art.asp?art_id=80&
Inspite of it was created for CC, the approach is the same for CCS as well.
On the record form for "users" table create Before Show event where get the value from session and assign it to the form field.
If you have problems with coding it please refer to CCS Programming Reference at: http://www.codecharge.com/studio/panel/onlinedocs.html
|
|
|
 |
|