[progress Communities] [progress Openedge Abl] Forum Post: How To Handle Errors From Custom...

  • Thread starter Thread starter jts-law
  • Start date Start date
Status
Not open for further replies.
J

jts-law

Guest
Has anybody implemented custom errors within a business entity and figured out how to display them in KUIB? I have a very custom business entity object with many rules that allow/deny create/delete/update of records. In each case where an action is denied I'm setting ERROR and REJECTED on the before temp-table records and/or the after temp-table records. I'm also setting the ERROR-STRING and then calling REJECT-CHANGES on the dataset. None of this generates an error message on the KUIB app. Also, in case this comes into play, my business entity is being accessed via a WebHandler on PAS, not a standard REST service. The WebHandler converts the dataset to JSON to return the data to the client. Since I had to code my own REST functionality maybe I need to add code in the WebHandler to pass the errors through? Do I need to handle the errors differently in my business entity code? Or do I need to add code to the KUIB app to handle the errors on the front end? TIA Louis Winter

Continue reading...
 
Status
Not open for further replies.
Back
Top