Hi Abu,
I tried to use the try catch method in phphgrid. But when submit its not working for me.
Kindly help me to solve this issue and give me the sample code for using try catch method.
Thank you
1 Answers
Hello,
When you use on_update, on_insert, on_delete event handlers, it gives your control via php callback function.
In those callback functions you can use any php syntax you need, including try/catch.
To response back some error to grid, you can use phpgrid_error("error message"); inside catch.
Your Answer