saving data with xml loadstructure and dataProcessor

how can i save data when i use the attachform function with loadstructure and the dataProcessor?

var dhxListNaam = dhxLayoutWindow.cells("a").attachForm();
dhxListNaam.loadStruct("inc/xml/klant/formulieren/naam.php");   
dhxListNaam.load("inc/xml/klant/data/naam.php?id="+ KlantIDc +"");
dhxListNaam.save();
	
var DPNaam = new dataProcessor("inc/xml/klant/data/naam.php?id="+ KlantIDc +"");
DPNaam.init(dhxListNaam);

[code]echo ‘’;
echo ‘’;
echo ‘’;
echo ‘’;
echo ‘’;
echo ‘’;

echo ‘’;
echo ‘’;
echo ‘’;

echo ‘’;
echo ‘’;[/code]

$form = new FormConnector($conn); $form->render_table("klanten","KlantID","Username,Active,Email");

Values of “bind” attributes must be the same as fields name in connector’s config.

i had that, sorry copied the wrong form to this forum, but it ads as a new row instead of updating the row… how can i make it that i just updates the row thats loaded using the load funtion.

It is strange, because after loading form always switch to update mode.

In any case you can add the next lines in the callback of data loading

[code]form.formId = id; //id of record
form.resetDataProcessor(“updated”);

[/code]