cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Handling of fields with @Semantics.text: true and @ObjectModel.text.association in FIORI Elements

jens_borau
Explorer
0 Likes
566

In our ABAP Backend I created an odata service from an CDS view with @OData.publish: true. On top of the odata service I added a FIORI Elements app (list report) with BAS.

One of the fields in the CDS view is called "assignedto" which has a foreign key association to "_Users" and gets the text from _Users via @ObjectModel.text.association: '_Users'. In _Users I have a field annotated with @Semantics.text: true. 

This works fine as far as I have a table column, where I can see the user ID and name / text in one field.

In the metadata I see that the odata service delivers two fields:

                <Property Name="assignedto" Type="Edm.String" MaxLength="12" sap:display-format="UpperCase" sap:text="assignedto_Text" sap:label="Bearbeiter" sap:value-list="standard"/>
                <Property Name="assignedto_Text" Type="Edm.String" MaxLength="81" sap:display-format="UpperCase" sap:creatable="false" sap:updatable="false"/>
 
In the field selection of the table in the app both fields are available. Is there a way to hide the field "assignedto_Text" from the user in the app in the field selection, filter etc.?
 
It must be still available in the odata service to show ID and name / text in the other field.

Accepted Solutions (0)

Answers (0)