You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@eoaksnes
Submitting optional numberField as blank does not send None/Null to DMSS, rather it sends 0.
Need a way to differentiate between 0 and No value.
Sumitting optional string sends empty string "", not Null.
Also for dimensional scalar, when it's not a primitive, we need to find a way to handle optional or not.
Solutions could be to have a null/none value in dmss.
@pbullhove@collinlokken I think this is related to what Christopher is currently working on.
It will remove all primitive attributes from the payload that do not have any value.
How it is done: The NumberField and StringField will set the value to null to handle empty values. Then, the Form.tsx in the submit handler will set all values that are null to undefined, so that it is removed from the payload so that they will not be saved in the document. There reason why it is done this way, is that the controller does not support undefined.
If a number attribute is optional in form, then you cannot remove it. It submits 0 instead of null.
The text was updated successfully, but these errors were encountered: