Hello forum,
as a basis for my experiments, I use the example 07_treegrid_multitable_connector.php from the current dhtmlxConnector_php_v10_110725.zip.
I monitor the background activities $conn->enable_log(“temp.log”,true); and often appear in this file the line “Undefined offset …”. I think some of my problems I have with the connector component are related to. I would like to insert in the treegrid for example a record and get the following entries in the log file:
[code]====================================
Log started, 18/11/2011 02:11:30
Undefined offset: 1 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 103
Undefined offset: 5 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 106
DataProcessor object initialized
1321623383101_gr_id => 1321623383101
1321623383101_gr_pid => 2%235
1321623383101_baum => new row
1321623383101_spaltea => text1
1321623383101_!nativeeditor_status => inserted
ids => 1321623383101
Undefined offset: 1 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 157
Undefined offset: 1 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 157
Undefined offset: 1 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 157
Undefined offset: 1 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 157
Row data [1321623383101]
gr_id => 1321623383101
=> 2%235
baum => new row
spaltea => text1
!nativeeditor_status => inserted
Undefined offset: 5 at J:\xampp\htdocs\treegrid\codebase\treegridmultitable_connector.php line 106
Change id:
change value of: gr_id as:
Change new id:
change value of: as: 5
Incorrect field name used: phone_developer
data
gr_id =>
=> 5
baum => new row
spaltea => text1
!nativeeditor_status => inserted
data
gr_id =>
=> 5
baum => new row
spaltea => text1
!nativeeditor_status => inserted
INSERT INTO phones (phone, phone_type, phone_developer) VALUES (‘new row’, ‘text1’, ‘2’)
Event code for insert processed
Change id: 0%23
Edit operation finished
0 => action:inserted; sid:0%23; tid:0%23154;
Done in 0.007498025894165s[/code]
It is evident that some data are missing. E.g. there is no information on the parent id or the sid as is usual for an update or delete.
My questions are:
[]What does the “Undefined offset” mean?[/]
[]Why is the row still bold after an insert?[/]
[]How can I get the parent id I need for an insert? I have already tried with extra fields but with no success?[/]
I’ve attached my sample files. The behind database I have created from your dump in connector zip.
I would be overjoyed if someone could help me.
Regards
comfortliner
treegrid.zip (2.01 KB)