Call to undefined method DataAction in php connector

Hi.

I am using treemultitable_connector and everything works fine, except when I want to update (edit somethings) .

I don’t know what I’m doing wrong…

Here code in html:

datosg.setXMLAutoLoading(“listree.php”);
datosg.loadXML(“listree.php”);
dp = new dataProcessor(“listree.php”);
dp.init(datosg);

Here code in php connector

require_once (“./dx/dhtmlxConnector/codebase/treemultitable_connector.php”);
$tree = new TreeMultitableConnector($res);
$tree->setMaxLevel(3);
$level = $tree->get_level();
$tree->dynamic_loading(true);
$tree->enable_log(“log”);

switch ($level) {
	case 0:
		$tree->render_table("listas1","idl","lista_des","","");
		break;
	case 1:
		$tree->render_table("grupos1","idg","nombre_grp", "", "idl");
		break;
	case 2:
		$tree->render_table("subgrupo1", "ids", "nombre_sgr", "", "idg");
		break;
	case 3:
		$tree->render_sql("select ida,ids,concat(diag1,' - ',diag2) as diags from agrupaciones1", "ida", "diags", "", "ids");
		break;
} 

Here info in Datraprocessor Debug:

Log:
row 2#301 marked [updated,valid]
Initiating data sending for 2#301
Initiating data sending for all rows
Sending all data at once
Server url: listree.php?editing=true parameters
2#301_tr_id=2%23301
2#301_tr_pid=1%23143
2#301_tr_order=0
2#301_tr_text=Para%20analisis
2#301_!nativeeditor_status=updated
ids=2#301
Server response received details

Fatal error: Call to undefined method DataAction::set_id() in C:\Apache\htdocs\dhtmlxConnector\codebase\treemultitable_connector.php on line 125

Here info connector log:

DataProcessor object initialized
2#301_tr_id => 2#301
2#301_tr_pid => 1#143
2#301_tr_order => 0
2#301_tr_text => Para analisis
2#301_!nativeeditor_status => updated
ids => 2#301

Row data [2#301]
tr_id => 2#301
idg => 1#143
tr_order => 0
nombre_sgr => Para analisis
!nativeeditor_status => updated

Thanks in advance for your help

Try to update base_connector.php with the attached one
Which version of connector you are using?
base_connector.zip (5.34 KB)

Hi Stanislav.

Thanks for your reply, but the problem persists.
I’m using base_connector.php from the file dhtmlxConnector_v10_php.zip that i downloaded from your site on 4/22/2011.

Your help is welcome.

Hi.
Try to update file dataprocessor.php (don’t forget to do a file copy before replace it).
dataprocessor.zip (3.38 KB)

Hi. radyno

It works fine.

Thanks a lot !!! :smiley: