I am using Grid and DataProcessor free versions. I am trying to pass an ID (engid) around which is not in the tables I’m rendering, but used to decide which tables to render.
The value is passed into the page which has my Grid on it, and I am trying to use the following:
mygrid.load("connector.php?connector=true&engid=$engid&dhx_filter[column]=0");
var dp = new dataProcessor("connector.phpconnector=true&engid=$engid&dhx_filter[column]=0"");
There is code in connector.php to read $_GET[‘engid’] and then choose the appropriate table to use in render_table. This works fine for mygrid.load(), but the custom parameters don’t seem to make it when called via dataProcessor()–I get an error that the index is not defined (and it’s not).
The only hint I could find was to set dp.setTransactionMode(“GET”); but that doesn’t seem to have helped.
a) do not change the sending mode of dataprocessor
b) your code has a typo, it must be
var dp = new dataProcessor("connector.php?connector=true&engid=$engid&dhx_filter[column]=0"");
c) to ensure that url preserved during server side filtering|sorting ( if you plan to use them ), code must look as
mygrid.load("connector.php?engid=$engid&connector=true&dhx_filter[column]=0");
var dp = new dataProcessor("connector.php?engid=$engid&connector=true&dhx_filter[column]=0"");
place custom parameters always before connector=true
client side code will not change part of url before “connector=true”, so vars in that part of url must be always available, but if you are using dhx_filter[column] and have a real filter for the same column, it possible that data from real filter will override the value which was manually placed in the url.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan