cancel
Showing results for 
Search instead for 
Did you mean: 

CollectionFacet in Flexible Programming Model

kai_hbner
Explorer
0 Kudos

The documentation for the Flexible Programming Model explaines that its possible to reference the Form Macro to FieldGroups as well to CollectionFacets. The embedded example (https://sapui5.hana.ondemand.com/test-resources/sap/fe/core/fpmExplorer/index.html#/buildingBlocks/form/formSample) seems to be incorrect, all 3 sections are using FieldGroups, not Facets.

It seems possible to reference the CollectionFacet via @com.sap.vocabularies.UI.v1.Facets/0 (or any other valid index) but how would it be possible to use the ID of the CollectionFacet?

In my case there are multiple CollectionFacets available and the index is not an stable identifier

Accepted Solutions (0)

Answers (2)

Answers (2)

kai_hbner
Explorer
0 Kudos

Hello Christian,

so there is no way to refer to an existing CollectionFacet, instead I have to use multiple form blocks with reference to the single FieldGroups, correct?

Regards

Kai

c-kobo
Advisor
Advisor
0 Kudos

Yes, this is indeed the case. The existing Flexible Programming Model Explorer samples will also be adjusted accordingly.

Regards

Christian

c-kobo
Advisor
Advisor
0 Kudos

Hello Kai,

thanks for giving feedback on this.
The documentation is simply incorrect here. Though you can refer via Facets/<index> to reference facets technically, the official supported way is to refer to the FieldGroup in the metaPath of the form building block.

I'll make sure that the documentation is being corrected accordingly.

Best regards

Christian Kolbowski