Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raj on May 02, 2008 07:15
open dhtmlx forum
update data using DataProcessor

Hi,

I am using dhtmlgrid DataProcessor in my application update data into Database,
Is there any way to display error text in the GUI, if any checks fail during the update/insert data...

For Example, I am trying to insert a row of data into Database,
before doing insert I am doing few checks based on the Business rules, if any rule fails (If a user<Jhon Luther> is not authorised to save the data), then I want to display an error message like "Jhon Luther is not authorised to insert data.",

Is there any way to display like this in GUI?, How do I get this message from my server side and where do I catch this message?

Please suggest me in this regard....

/Thanks
Raj

Answer posted by Support on May 02, 2008 08:11
Dataprocessor allows to define custom types of responses, which may be used to inform client side code about some kind of error.
    http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#grid_dbproc_err
    http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=2973