CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 How do I get the value of any control in any form in a variable in an Event Handler?

Print topic Send  topic

Author Message
Salek
Posted: 04/21/2003, 6:03 AM

Hello

I wonder if some one can point me to the right direction.
I am using asp3+templates + msaccess in CCS.
I need to add a record in USERS table after I insert a record in
Distributors Table,
so the Newly inserted Distribuor has a user for him automatically generated.
Heres how I had the it working right in CC, That I cant seem to port in
CCS.
----------------------------------------------------------------------------
---------------------
select case sAction
case "insert"
'-------------------------------
' distributors1 AfterInsert Event begin
InsertUser fldDistributorName,fldEmail,utDistributor // this function in
GLOBAL CODE does the Job
' distributors1 AfterInsert Event end
'-------------------------------
case "delete"
'-------------------------------
' distributors1 AfterDelete Event begin
DeleteUser sWhere // this clears
the users if the Distributor is deleted
' distributors1 AfterDelete Event end
'-------------------------------
end select

Hope you get the situation........
Now my quesion is

1. How do i include My Code in CSS?
CC had a simple way {global code} but i cant find it in CSS.


2. How do I get the value of any control of form in a variable?
in CC I saw the code and figuered out that variables nmed fldFieldName
had the value of the form elements , so I could write
InsertUser fldDistributorName,fldEmail


Thanks in Advance
Regards
Salek








   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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