Hi,
I am using render_sql to populate grid and render_table to perform Insert,delete/update operation.
e.g.
render_sql(“select * from emp”,“id”,empno,ename,dept,sal");
and
render_table(“emp”,“id”,empno,ename,dept,sal)
I don’t want to save “ename” in the emp table, How can I achieve it?
May be I achieve it by overriding “INSERT”/“UPDATE” operation of the dhtmlxdataprocessor.
Is there any way that dtamlxdataporcessor execute my Statements instead of default insert/update statements…
If is there any sample/demo/example please tell me.
Looking for positive response from you.
Regards
Is there any way that dtamlxdataporcessor execute my Statements instead of default insert/update
yep, check
docs.dhtmlx.com/doku.php?id=dhtm … ex_updates
As for your original question, the simplest way to exclude some field
function my_update($action){
$action->remove_field("ename");
}
$conn->event->attach("beforeProcessing","my_update");
$conn->render_table("emp","id",empno,ename,dept,sal);
Thanks. You are grate person. I am thankful to you for this help
the second option :
function my_update($action){
$action->remove_field(“ename”);
}
$conn->event->attach(“beforeProcessing”,“my_update”);
$conn->render_table(“emp”,“id”,empno,ename,dept,sal);
worked for me.