I’m trying to run some simple grid (v2.5) with java connector (v0.9b) and pgsql.
Wrote the programs exactly as in the samples:
javascript:
mygrid = new dhtmlXGridObject(‘gridbox’);
…
mygrid.loadXML(“cennik.do”);
myDataProcessor = new dataProcessor(“cennik.do”);
myDataProcessor.init(mygrid);
a servlet code:
Connection conn = …
GridConnector c = new GridConnector(conn, DBType.PostgreSQL);
c.dynamic_loading(100);
c.set_encoding(“ISO-8859-2”);
c.enable_log("/tmp/conn", false);
c.render_table(“szz.typ_kli”, “id”, “id,nazwa”, “”, “”);
The grid get populated with the data from db, but any ins/update/del operation causes the “Incorrect XML” error. I was trying to search the cause and discovered, that the parse_request method does not set the “editing” mode and does not recognizes the ids of rows. The dhtmlxdataprocessor.js sends the following parameters to the servlet:
!nativeeditor_status=inserted
c1=blabla
gr_id=null
c0=999
but the parse_request expects “ids” parameter. What’s going on, how to make it to work?