SAP-samples / fiori-elements-feature-showcase

Sample application that demonstrates and documents a broad variety of features of SAP Fiori elements for OData V4. Developers can play around with the new features and learn how to implement them.
https://community.sap.com/topics/fiori-elements
Apache License 2.0
185 stars 65 forks source link

Data Input to ChildEntities2 vanishes #31

Closed kiran-b-a closed 3 weeks ago

kiran-b-a commented 3 weeks ago
image

How to Reproduce:

cds watch # in root

navigate to launchpad -> feature elements showcase -> click on create try to input anything within childentities2 section as soon as you enter the data vanishes in the create mode after you move out of the context

schiwekM commented 3 weeks ago

Hi @kiran-b-a,

this is because childEntity2 is an association to one in the data model and should be set via its foreign key. e.g. the fields actually are not intended for input.

On the latest main, I renamed the relation to 'association2one'. Moreover the section is no longer shown in edit mode and the fields are also marked as readonly so if they would be shown, they would not be editable.

Hope that clears things up.

BR, Marten