CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Using fields from previous forms in CCS

Print topic Send  topic

Author Message
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


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.