I know Sematik and i will try but this is the message that i receive in the file log:
While there is no edit mode mark, POST parameters similar to edit mode detected. \n Switching to edit mode ( to disable behavior remove POST[ids]
and i’m using the last version of dhtmlx 5 suite so it shouldn’t be necessary include connector.js and dataprocessor.js on client side page (javascript). you confirm this ?.
thiis is code javascript:
var dpgmag = new dataProcessor(“data/articoli.php”);
dpgmag.init(magGrid);
dpgmag.attachEvent(“onBeforeUpdate”,function(id,type){
if (type == “inserted” || type == “updated”) {
alert(“cambio”);
dpgmag.serverProcessor=“data/articoliIns.php”
}
return true;
});
articoli.php
header (“Content-Type: text / html; charset = utf-8”);
require(“…/codebase/connector/grid_connector.php”);
$res= new PDO(“mysql:dbname=db_oratorio;host=localhost”,“root”,“”);
$conn = new GridConnector($res,“PDO”);
$conn->enable_log(“temp.log”);
$conn->render_sql(“Select magazzino.codice, magazzino.descrizione, magazzino.famiglia, magazzino.um, magazzino.nota, saldi.quantita, quantita - qta_prenotata - qta_fuori as qta_disponibile,saldi.qta_prenotata,saldi.qta_fuori from magazzino left join saldi on magazzino.codice = saldi.codice”,“magazzino.id”,“codice,descrizione,famiglia,um,nota,quantita,qta_disponibile, qta_prenotata,qta_fuori”);
?>
articoliIns.php
<?php
require("../codebase/connector/grid_connector.php");
$res= new PDO("mysql:dbname=db_oratorio;host=localhost","root","");
$conn = new GridConnector($res,"PDO");
$conn->enable_log("temp.log");
$conn->render_table("magazzino","id","codice,descrizione,famiglia,um,nota");
?>
Where is the problem ?