DataStore & Form, no values going to server

Hi,

I have a DataView and form using DataStore. When I make changes to the form I called the following thinking that it was also saving to the database.

crewDetailsForm.attachEvent(“onButtonClick”, function() {
crewDetailsForm.save();
});

but i was only updating the datastore… so I changed to

crewDetailsForm.attachEvent(“onButtonClick”, function() {
crewDetailsForm.save();
crewDP.sendData();
});

(where crewDP is the dataprocessor used to populate the datastore). This is still not updating the database however, I am getting this in the debug panel

Log:
row 1189 marked [updated,valid]
Initiating data sending for all rows
Sending all data at once
Server url: ccproc/crewmgmt2.php?editing=true parameters
null
Server response received details

<?xml version='1.0' ?>

So… the parameters being sent are null? Heres the server side log

====================================
Log started, 08/11/2011 06:11:22

DataProcessor object initialized
ids => 1082

Row data [1082]

Edit operation finished

Done in 0.0010561943054199s

All .js files are included and in the correct order… so I’m not sure whats happening!

thanks
Cyril.

but i was only updating the datastore… so I changed to
If you have dataprocessor attached to the datastore then it must be triggered by “save” action of the form and must initiate data sending to the server side.
02_form.zip (43.9 KB)

HI Stanislav,

I am calling the save action on the form, it does save the data to the datastore, but not to the the database. When i use the debug processor the request is going to the server but there are no parameters… i.e.

Initiating data sending for all rows
Sending all data at once
Server url: ccproc/crewmgmt2.php?editing=true parameters
null
Server response received details

<?xml version='1.0' ?>

heres the order of code:

		var crewListDS = new dhtmlXDataStore({
				url:"ccproc/crewmgmt.php?cc_action=getCrewDS",
				datatype:"xml"}
			); 
		var crewDP = new dataProcessor("ccproc/crewmgmt.php?cc_action=getCrewDS");
		crewDP.init(crewListDS);	
		crewDP.setUpdateMode("row"); 
		crewDP.setTransactionMode("POST",true);


	        crewResultsDV = new dhtmlXDataView({
					container: "searchpanel",
					type: {
						template: "<div class='dvcrewname'>#crewname#</div><div class='dvcrewloc'>#location#</div><div class='dvcrewmobile'>#mobile#</div><div class='dvcrewemail'>#email#</div>",
						height: 15
				},
				drag: false
			});
			
			//DHTMLX Crew Listing DataView
			crewResultsDV.sync(crewListDS); 
		crewDetailsForm.attachEvent("onButtonClick", function()	{ 	
				dhtmlx.confirm({
					title: "Save Crew Changes",
					type:"confirm-warning",
					text: "Save Changes to Crew Member?",
					callback: function() {
						crewDetailsForm.save();
						crewDP.sendData();
						dhtmlx.message({
							text:"Crew Changes Saved",
							expire:1000});						
						}
				});
			});

			crewDetailsForm.bind(crewResultsDV);

I seemed to have fixed this by using a new version of dataprocessor from another post on this forum… not sure how or why but its working now!