Form binding Grid

Hi support team, I have the following question about dhtmlxForm and dhtmlxConnector.
when record selected in the grid, it will be shown in the form, It update the record at the grid , but does not save data into DB. What isn’t working is when I hit “Save”.

<input type="button" value="Save" onclick="myform.save()"></div>
....
		mygrid = new dhtmlXGridObject('gridbox');
		...
		mygrid.setColumnIds("nlat,nlog");
		...
		mygrid.init();
		mygrid.loadXML("php/get.php");
		var formData = [{
			type: "label",
			label: "Geo"
		}, {
			type: "input",
			name: "nlat",
			value: "",
			labelWidth: 100,
			label: "Latitude"
		}, {
			type: "input",
			name: "nlog",
			value: "",
			labelWidth: 100,
			label: "Longitude"
		}];
		myform = new dhtmlXForm("gridbox2", formData);
		myform.bind(mygrid);

		myDataProcessor = new dataProcessor("php/update.php");
		myDataProcessor.init(mygrid); 
		myDataProcessor.init(myDataStore);

Hi,
you shouldn’t call dataprocessor init twice. Plase, try to use the follow:

      myDataProcessor = new dataProcessor("php/update.php");
      myDataProcessor.init(mygrid); 

I already removed. Updates the grid, but not saved in the database. Wed only saves digit grid.

saved when I enter the grid, but not by the form

Does any request to server occur?
Maybe it sends data but some error appear during saving item?
Are you using connector on server side?

Hi

any final answer to this problem ? I’m having the same one.

Modification in the grid are correctly sent to DB.

When I modify through the Form (binding the grid) and click the save button, information is correctly updated in the grid, but no update in done in the DB.

Regards
Matt

If issue still occurs - please provide any kind of sample or demo link where problem can be reconstructed.

Hi

sure : ks369381.kimsufi.com/hebergement … rents.html

Matt

Do you mean that after calling

liste_adherents.cells(sid,0).setValue(…

data is not saved in DB? Just add after setting new values

dp_categories.setUpdated(sid)

Hi

as told just above : I implemented a solution like the Contact Formular example.

Matt