Hi,
Is there a recommended way for dropping values that are missing from the bound option data source? For form items, the logic now seems to be that the missing id is shown in the selector. If we have a SelectItem bound to a data source, and the related record has been deleted server-side, the select item will show the numerical primary key of the selection as a value.
What we would prefer to achieve is that when this happens, the actual value is cleared (or dropped if the value is of multiple type). We have some backends where we cannot control the relationships of the assets. It happens that the related assets (from the option data source) are removed from time to time. When this happens, we are stuck with numerical invalid values at the other end when the users are editing the assets. We have been struggling to implement this without any serious side-effects with no luck.
Thanks,
Marko
Is there a recommended way for dropping values that are missing from the bound option data source? For form items, the logic now seems to be that the missing id is shown in the selector. If we have a SelectItem bound to a data source, and the related record has been deleted server-side, the select item will show the numerical primary key of the selection as a value.
What we would prefer to achieve is that when this happens, the actual value is cleared (or dropped if the value is of multiple type). We have some backends where we cannot control the relationships of the assets. It happens that the related assets (from the option data source) are removed from time to time. When this happens, we are stuck with numerical invalid values at the other end when the users are editing the assets. We have been struggling to implement this without any serious side-effects with no luck.
Thanks,
Marko
Comment