Problem with Form and Grid Bind

I have problems with this code, if i only use the grid the data loads ok, but when i add the form, then just show a white box and don’t display any data at all, can someone please give a hint about what can be the issue here?

FormBindExample.php

[code]

[/code]

griddata.php

[code]<?php
require_once(“config.php”);
$res=pg_connect($postrgre_connection);

require("dhtmlxSuite_v30_pro_111031_eval/php/codebase/grid_connector.php");
require("dhtmlxSuite_v30_pro_111031_eval/php/codebase/db_postgre.php");

$grid = new GridConnector($res,"Postgre");

$grid->dynamic_loading(100);
$grid->render_table("clientes","codigocliente","codigocliente,primernombre,primerapellido,direccion,correoelectronico");

?>[/code]

I corrected the code for syntax, and it loads, but don’t save anything, any suggestion?

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>For demo purpose only :: &1</title>
<script src="dhtmlx_pro_full/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
<script src="dhtmlxSuite_v30_pro_111031_eval/dhtmlxDataStore/codebase/datastore.js" type="text/javascript" charset="utf-8"></script>
<script src="dhtmlxSuite_v30_pro_111031_eval/php/codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="dhtmlx_pro_full/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
<div id="gridbox" width="1250px" height="250px" style="background-color:white;overflow:hidden"></div>
<div id="myForm" style="width:700px; height:300px;"></div>
<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("dhtmlxSuite_v30_pro_111031_eval/php/samples/common/imgs/");
	mygrid.setHeader("Codigo Cliente, Nombre, Apellido, Direccion, Correo Electronico");
	mygrid.attachHeader("#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter");
	mygrid.setInitWidths("100,*,*,*,*,*,*");
	mygrid.setColTypes("edtxt,edtxt,edtxt,edtxt,edtxt");
	mygrid.setColSorting("connector,connector,connector,connector,connector");
	mygrid.enableSmartRendering(true);
	mygrid.enableMultiselect(false);
	mygrid.init();
	mygrid.loadXML("xx_sample_postgresql_connector.php");
    var dp = new dataProcessor("xx_sample_postgresql_connector.php");
	dp.init(mygrid);
    //dp.setTransactionMode("POST", true);
    //dp.enablePartialDataSend(true);
	formData = [
	   {type: "input", name:"codigocliente", label: "Codigo Cliente"},
	   {type: "input", name:"primernombre", label: "Nombre"},
       {type: "input", name:"primerapellido", label: "Apellido"},
       {type: "input", name:"direccion", label: "Direccion"},
       {type: "input", name:"correoelectronico", label: "Correo Electronico"}
    ];
    var myForm = new dhtmlXForm("myForm", formData);
    myForm.bind(mygrid);
    
    myForm.attachEvent("onButtonClick", function(id){        
	   myForm.save(); //saves the made changes
       });   
</script>
<div><input type="button" value="Save" onclick="myForm.save()"></div>
</body>
</html>

In above case js init looks good. Logging on connector can be enabled to check which data is sent to server side.

docs.dhtmlx.com/doku.php?id=dhtm … nd_logging

The link to the example above is not longer available, is there any new reference for this?

The valid link is

docs.dhtmlx.com/doku.php?id=dhtm … tor:errors

Sorry for inconvenience