Problems with dataProcessor

I’m trying to get the dataprocessor to work but seem to be struggling, I’m surprised as it appears that all you need are two lines added to the initialisation of the gird!

So I’ve got the code below, please could someone have a look and see if I’m missing anything - your help will definietly be appreciated, I’ve been pulling my hair out with this!! :slight_smile:


		function doInitGrid(){
			mygrid1 = new dhtmlXGridObject('mygrid1_container');
			mygrid1.setImagePath("/test/codebase/imgs/");
			mygrid1.setHeader("Active,ID,Description,Redirection Path,Included Paths");
			mygrid1.setInitWidths("70,150,230,300,300");
			mygrid1.setColTypes("ch,ed,ed,ed,ed");
			mygrid1.setSkin("light");		
			var url = "/test/XLST-test/downtime-out.xml";
			mygrid1.load(url, "xml");
			mygrid1.enableMultiline(true);
			mygrid1.enableAutoWidth(true);
			mygrid1.enableAutoHeight(true);
			mygrid1.setSizes();
			mygrid1.enableSmartRendering(true);
			mygrid1.init();

			//============================================================================================;
			myDataProcessor = new dataProcessor("/test/XLST-test/transform.asp");
			myDataProcessor.init(mygrid1);
			//myDataProcessor.defineAction("error_of_datastore",handle_error_of_datastore);

			myDataProcessor.attachEvent("onAfterUpdate", function() {
				log("onAfterUpdate", arguments);
				return true;
			});
			myDataProcessor.attachEvent("onRowMark", function() {
				log("onRowMark", arguments);
				return true;
			});
			myDataProcessor.attachEvent("onBeforeUpdate", function() {
				log("onBeforeUpdate", arguments);
				return true;
			});
			myDataProcessor.attachEvent("onValidatationError", function() {
				log("onValidatationError", arguments);
				return true;
			});
			myDataProcessor.attachEvent("onAfterUpdateFinish", function() {
				log("onAfterUpdateFinish", arguments);
				return true;
			});
			myDataProcessor.attachEvent("onFullSync", function() {
				log("onFullSync", arguments);
				return true;
			})

		}

Your code is correct. What exact issue do you have?

Thanks for looking Olga.

I can edit the cells and they change but there is no call made to the remote dataProcessor service… I’ve tried in IE and Firefox (with Firebug running) and don’t see any requests. Thats why I added the event handlers, these do not appear to get fired either…

argh, as I’m writing this i was about to describe the includes I’m using and realised that I’ve got some 2.5 scripts (DHTMLXGrid) with the 2.6 scripts (dataProcessor). I’ve changed it all to 2.6 and it’s working ok.

VERY sorry to waste your time Olga. I hope the post can help someone else!