Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Velmurugant on Sep 07, 2009 03:41
open dhtmlx forum
how do handle confirmation messages in Gris using dataprocessor?

I am performing Grid operation using Dataprocessor fine. Now i want to display status message in client side. For example "operation successfull". How do i do that? Once the server side operation done i am returning succeess flag. ex: return 1; How do i handle this message displayed in client side?
Answer posted by dhxSupport on Sep 07, 2009 06:44
Answer posted by velmurugant on Sep 08, 2009 02:52
Hi,
i have tried the above said techniques. but i didnt get any improvements. I am sending data to sever side using the below code.
myDataProcessor.sendData();   Once the sever side operation (add/update) done, how do i get response in client side?
i have tried using the below
 dp.defineAction("updated",function(sid,response){
alert(response);
})

I didnt get any alert? Is there anything to do in server side i need to do? Something need to return?

Please help me
Thanks,




Answer posted by dhxSupport on Sep 08, 2009 03:36
After update/insert/delete operations your server side code should returns response in the following format:

<data>
<action type='[action name]'>
anything
</action>
</data>

Standard action names is "update", "insert" and "delete". Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:dataprocessor
Answer posted by velmurugant on Sep 08, 2009 04:16
Done.  Now it is working fine.Thanks.