I am just trying to get a simple prototype working that updates my database. The population of the grid works fine. When I update a cell in the grid, the cell text becomes bold and stays that way as I go to different cells, but no update is made. Thanks for any help you can give.
Here is my code:
grid = dhxTabbar.cells("t3").attachGrid();
grid.setImagePath("../../../dhtmlxGrid/codebase/imgs/");
grid.setHeader("CertID, CertName, CertNum, CertType,Status");
grid.setColTypes("ed,ed,ed,ed");
grid.init();
grid.enableSmartRendering(true);
grid.load("analyte_connector.php");
dp = new dataProcessor("analyte_connector.php");
dp.init(grid);
<?php require_once("../../../dhtmlxConnector_php/codebase/grid_connector.php"); $res=mysql_connect("localhost","",""); mysql_select_db("sampleDB"); $grid = new GridConnector($res); $grid->dynamic_loading(100); $grid->render_table("tbl_Analyte","NelacAnalyteID","NelacAnalyteID,AltAnalyteName,NELACAnalyteName,AnalyteCas"); ?>
Using the debug js file, I see this after updating cell:
Log:
row 1015 marked [updated,valid]
Initiating data sending for 1015
But the code causes this error, and no update is made:
Error: c is undefined
Source File: localhost:32946/dhtmlxGrid/codeb … mlxgrid.js
Line: 958
This is the code at line 958:
data[“c”+i_c]=c.getValue();};var udata=this.obj.UserData[rowId];if (udata){for (var j=0;j<udata.keys.length;j++)if (udata.keys[j].indexOf(“__”)!=0)