DataProcessor Issue


I’m using grid with dataprocessor:
companiesDP = new dataProcessor(“company_grid_save_data.php”);
When I call companiesDP.sendData() then DataProcessor call the given php but witout any paramater. DataProcessor debugger show as though it pass the gr_id and all the columns values of the grid but doesn1t working. If I changed the php as follows:

$rowId = $_GET[“gr_id”];
$newId = $_POST[“gr_id”];
$action = “Ok”;
header(“Content-type: text/xml”);
echo(‘<?xml version="1.0" encoding="utf-8"?>’);
echo “”;
echo “”;
echo “”;

the server response is:

<?xml version="1.0" encoding="utf-8"?>

So how can I get the parameter values in the PHP file? What am I doing wrong?
Thx in advance!

With above settings grid will encode parameters to be able to save multiple rows at once.
If you are using a custom backend, change the init code like next

companiesDP = new dataProcessor("company_grid_save_data.php"); companiesDP.init(companiesGrid); companiesDP.setTransactionMode("POST",false); companiesDP.setUpdateMode("off");

and you will be able to use gr_id and c0, c1, c2 - cn parameters on server side


Thx for the answer, but tried “setTransactionMode(“POST”,false);” with both true and false but dataprocessor always send multiple rows at once. Finally I managed to work with multiple rows. Thx

Have you used the same command order ( setTransactionMode after init ) ?