J
jts-law
Guest
Hi Edsel, The json below shows what was sent in the request and received back in the response. I took these from the Chrome debugger. As you can see, the response does have the properties you indicated. Regarding the JSDO.getErrors(), do I need to have an error handler as well to display the error message I'm returning, or should the KUIB error handler be displaying the "prods:error" string in the response? I am getting the "Error while saving changes." popup, but not the message from the response. Request: {"dsLookup": { "prods:hasChanges": true, "ttLookup": [ { "prods:id": "1495458794520-399", "prods:clientId": "1495458794520-399", "prods:rowState": "modified", "key_type": "Int", "key_id": "Br", "key_value": "90", "description": "Test", "group_description": "", "group2_description": "", "group3_description": "" } ], "prods:before": { "ttLookup": [ { "prods:id": "1495458794520-399", "key_type": "Int", "key_id": "Br", "key_value": "9", "description": "Test", "group_description": "", "group2_description": "", "group3_description": "", "_id": "1495458794520-399" } ] } }} Response: {"dsLookup": { "prods:hasChanges": true, "ttLookup": [ { "prods:id": "ttLookup33024", "prods:rowState": "modified", "prods:hasErrors": true, "prods:clientId": "1495458794520-399", "key_type": "Int", "key_id": "Br", "key_value": "90", "description": "Test", "group_description": "", "group2_description": "", "group3_description": "" } ], "prods:before": { "ttLookup": [ { "prods:id": "ttLookup33024", "prods:rowState": "modified", "prods:clientId": "1495458794520-399", "key_type": "Int", "key_id": "Br", "key_value": "9", "description": "Test", "group_description": "", "group2_description": "", "group3_description": "" } ] }, "prods:errors": { "ttLookup": [ { "prods:id": "ttLookup33024", "prods:error": "Unable to update, parameter already exists: Br, 90" } ] } }}
Continue reading...
Continue reading...