I have a DynamicForm but when I save it and the save fails (response with status < 0), the callback is not called,
I thought this would be fixed with setWillHandleError but it is not (this setWillHandleError fixed the same problem on my ListGrid)
See below for a piece of the code and the DSResponse
DSResponse:
I thought this would be fixed with setWillHandleError but it is not (this setWillHandleError fixed the same problem on my ListGrid)
See below for a piece of the code and the DSResponse
Code:
DSRequest requestProperties = new DSRequest();
requestProperties.setWillHandleError(true);
editForm.saveData(new DSCallback() {
public void execute(DSResponse response, Object rawData,
DSRequest request) {
if (response.getStatus() < 0) {
SC.warn((String)rawData);
}
}, requestProperties);
Code:
[
{
errors:[
{
errorNotAllowed:{errorMessage:"You are not authorized"}
}
],
isDSResponse:true,
invalidateCache:false,
status:-4,
data:"You are not authorized"
}
]
Comment