[progress Communities] [progress Openedge Abl] Forum Post: Businessentity - Response...

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

jts-law

Guest
Hello all, I'm working on a KUIB 2 app with an OE 11.6.3 rest service. On the backend I have a custom class for CRUD as well as a few standard BusinessEntity classes. The issue I'm having is the KUIB app is not displaying the prods:error message when an error occurs editing records. I get the "Error while saving changes." message but not the detailed error value from the prods:error field. The custom class works correctly and displays both. In comparing the JSON in the request and response from/to the KUIB app, I noticed that the response from the BE does not include the prods:clientId field in the response. Is there something special that needs to be done to force a standard generated BE to include prods:clientId in the response? The following are the JSON request sent from the KUIB app and the response returned for the WORKING module. The error displayed has "Error while saving changes." on the left of the small window, and "Unable to create, parameter already exists: Branch, 1" on the right side of the small window. Request: {"dsLookup" : { "prods:hasChanges" : true, "ttLookup" : [{ "prods:clientId" : "1502125404075-1056", "prods:rowState" : "created", "key_type" : "Int", "key_id" : "Bank.Branch", "key_value" : "1", "description" : "test", "group_description" : "", "group2_description" : "", "group3_description" : "" } ] } } Response (includes prods:clientId in data record): {"dsLookup": { "prods:hasChanges": true, "ttLookup": [ { "prods:id": "ttLookup55552", "prods:rowState": "created", "prods:hasErrors": true, "prods:clientId": "1502125404075-1056", "key_type": "Int", "key_id": "Bank.Branch", "key_value": "1", "description": "test", "group_description": "", "group2_description": "", "group3_description": "" } ], "prods:before": { }, "prods:errors": { "ttLookup": [ { "prods:id": "ttLookup55552", "prods:error": "Unable to create, parameter already exists: Branch, 1" } ] } }} The following are for the NOT WORKING module. The error displayed has "Error while saving changes." in the small window and no other text. I expect it to have "** glgroup already exists with Group 10 Account 1234567890. (132)" as well. Request: {"dsglgroup" : { "prods:hasChanges" : true, "ttglgroup" : [{ "prods:clientId" : "1502126481448-15", "prods:rowState" : "created", "id" : "", "seq" : 0, "gla_group" : 10, "account" : 1234567890 } ] } } Response (no prods:clientId in data record): {"dsglgroup": { "prods:hasChanges": true, "ttglgroup": [ { "prods:id": "ttglgroup39169", "prods:rowState": "created", "prods:hasErrors": true, "id": "", "seq": 0, "gla_group": 10, "account": 1234567890 } ], "prods:before": { }, "prods:errors": { "ttglgroup": [ { "prods:id": "ttglgroup39169", "prods:error": "** glgroup already exists with Group 10 Account 1234567890. (132)" } ] } }} Louis

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