Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1106
Handling Errors - A Question
posted

OK,  I have a WHDG hooked up and working. On my client side I invoke the following to do an update.

sender.get_behaviors().get_editingCore().commit();

In my code behind, I "MAY" get an exception from the backend processing the request. How can I pass this back to the client side function which called it in the line above.

Thanks

Parents
  • 14049
    Verified Answer
    Offline posted

    Since it is triggering an AJAX request to the server, this cannot be nadled within the same function. But you can handle the AJAXResponse client event and all of the info regarding errors that happened on the server is provided in the event args. The event is also cancelable to suppress default error messages.

Reply Children