hi, I’ve got some problem
based on:
docs.dhtmlx.com/doku.php?id=dhtm … ex_updates
I’m trying to submit a registration form and insert the data to 2 different table:
insert to user table, and user_info table
inserting to the user table, works with no problem.
when I’m trying to insert to the user_info table, it shows error like this:
[code]Element CONN.EVENT is undefined in a Java object of type class [Ljava.lang.String; referenced as ‘’
The error occurred in C:\Inetpub\wwwroot\olopluscf\xml\user.cfm: line 35
33 : <cfset ARGUMENTS.data.success()>
34 :
35 : <cfset request.conn.event.attach(“afterInsert”,my_update)>
36 : <!— we use ‘request’ scope to access connector within custom event—>[/code]
the dataprocessor code:
[code]
<cfset conn = createObject(“component”,request.dhtmlxConnectors[“form”]).init(request.dhtmlxConnectors[“datasource”],request.dhtmlxConnectors[“db_type”])/>
<cfset request.conn.sql.query("INSERT INTO user_info
(User_Id,first_name,last_name,address1,address2,city,state_id,zip_code,phone)
VALUES
(#id#,
'#first_name#',
'#last_name#',
'#address1#',
'#address2#',
'#city#',
#state_id#,
#zip_code#,
#phone#)")>
<cfset ARGUMENTS.data.success()>
<cfset conn.render_table(“[user]”,“id”,“user_name,password”)>[/code]
and how to get the id in user table that just inserted, and save it in the user_info table?
thank you very much.