I am trying to do something as described in your docs at:
[url]Start DHTMLX Docs
Specifically the docs give the following snippet of code:
[code]//fully custom code
class updateBehavior extends ConnectorBehavior{
private GridConnector conn;
public updateBehavior(GridConnector conn){
this.conn = conn;
}
@Override
public void beforeUpdate(DataAction action) {
String price = data.get_value("price");
String id = data.get_value("id");
conn.sql.query("UPDATE some_table SET price='"+price+"' where id="+id);
data.success(); //if you have made custom update - mark operation as finished
}
}
conn.event.attach(new updateBehavior(conn));
[/code]
Problem is the data variable does not exist and I guess it could refer to action. But more importantly the conn.sql.query(…) method does not exist.
Can you please provide a working example.
Thank you!