How to respond with an error message not specific to any field but whole record?
How to respond with an error message not specific to any field but whole record?
something like { fieldErros:[], status: "your record is too strange!" }
This question has accepted answers - jump to:
This discussion has been closed.
Answers
also It would be right to work with result codes like
Default for rails
At the moment, for a 4xx error to work correctly with Editor you would need to use
ajaxas a function and make the$.ajaxcall yourself. Then call thesuccesscallback that theajaxoption gives you when you get such an entry (assuming that it also returns valid JSON).I'll look into how this can be improved for future versions.
Allan
And is there way to report "record error" instead of field error?
Yes - there is an
errorproperty which can be used. It can be used for a form error.Regards,
Allan
Thank you!