Categories | Question details Back To List | ||
DataProcessor Not sending UserData Hi, I recently updated to the new grid 1.6 and now have an issue with the dataprocessor. It is no longer sending the userdata in the POST. Only Data in POST is shown Below .. ids save save_Details Please Enter Save Details. Double Click under Name to give Saved State a unique ID save_Name My Data save_gr_id save Thanks, Dave Grid Code is mygrid = new dhtmlXGridObject('saveGrid'); mygrid.enableMultiline(true); mygrid.setSkin('modern'); mygrid.setHeader("Details,Name"); mygrid.setColumnIds("Details,Name"); mygrid.setInitWidths("150,*") mygrid.setColAlign("left,left") mygrid.setColTypes("ro,ed"); mygrid.setColSorting("str,str"); myDataProcessor = new dataProcessor("?action=save_state"); myDataProcessor.setUpdateMode("off"); myDataProcessor.setTransactionMode('POST',true); myDataProcessor.enableDataNames(true); myDataProcessor.init(mygrid); //Prepare the XML String xml_out = '<?xml version="1.0"?>'; xml_out = xml_out + '<rows>'; xml_out = xml_out + '<row id="save"><userdata name="action">save_state</userdata>'; xml_out = xml_out + '<userdata name="state"><![CDATA[' + gridState + ']]></userdata>'; xml_out = xml_out + '<userdata name="saveid"><![CDATA[' + saveId + ']]></userdata>'; xml_out = xml_out + '<cell>Please Enter Save Details. Double Click under Name to give Saved State a unique ID</cell><cell id="savename"></cell></row>'; xml_out = xml_out + '</rows>'; mygrid.init(); mygrid.loadXMLString(xml_out); Answer posted by Support on May 22, 2008 09:39 Problem caused by not parsing userdata from initial XML, updated build will be available in few days, for now, to restore functionality you can use next patch http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=3369&ssr=yes&s=patch |