This commit is contained in:
2019-11-21 01:03:27 +00:00
parent b2f48cd45a
commit 1f34ec6256
4 changed files with 33 additions and 4 deletions

View File

@@ -49,6 +49,13 @@ CURRENT TODOs
TODO: Widget edit form, new record gives following error because custom field not set that is required:
- {"error":{"code":"2200","details":[{"target":"WidgetCustom2","error":"2204"}],"message":"Object did not pass validation"}}
- Why is this not displaying right in the UI error box? It just says "Validation error Object did not pass validation" and nothing else!?
- Ok, this is a bigger issue than originally seen.
- The server returns as above a normal error json fragment, the custom fields are referenced by their names like any other fields
- However, in the edit form each control has a ref and errors collection set by that ref so essentially it's sending "customFields" as the ref name of the entire custom fields control to the error returning code, however there are not matching fields
- i.e. the error comes back as for field named "WidgetCustom2" but the form is looking for errors for "customFields"
- What should happen:
- Custom fields control should participate in the same error code as the main form so it's identical and works
- Maybe can just do it like the main form but reference the main form's error collection??
TODO: Make sure can easily make new record in Widget form before getting into deeper stuff or making any other object forms.