10-28-2020 9:56 AM
Hi,
I have seen these 3 types in UI.facet #FIELDGROUP_REFERENCE, #IDENTIFICATION_REFERENCE and #LINEITEM_REFERENCE. I don't know when we go for #IDENTIFICATION_REFERENCE. Please suggest me.
10-28-2020 10:45 AM
If you define fieldgroupds then you can pass that id in UI.Facet with type #FIELDGROUP_REFERENCE.
But if you don't want/have fields groups, then you can use identification annotation, Identification annotation is used to add form fields on the object page.
In this case, instead of field group reference, you will give identification reference but you don't need to pass any id as there will be only one identification group for one cds view or entity unlike fieldgroups which can be multiple.
PS: Both identification and field groups annotations will generate forms in the object page, but field groups have even better functionality.
Thanks,
Mahesh
10-28-2020 11:24 AM
That means when there is no grouping of fields in the design then we can go for identification_reference or another way to achieve this using fieldgroup_reference with one id. Am i right?