cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide a result list column in a value help?

MattDion
Participant
0 Kudos

In BTP ABAP environment, I am making a value help based on a CDS entity.

The @UI.selectionField: [] annotation works fine, and the filters are rendered in the proper order.

The @UI.LineItem: [ { position: # } ] also works fine where it is maintained, in that the search results are displayed in the correct order.

However, the fields that do not have @UI.LineItem annotation maintained are still displayed in the result list.  They are added to the result list at the end, after all the other fields with a @UI.LineItem annotation. I have tried to maintain @UI.LineItem: [ { hidden: true } ] to these fields, but they are still displayed.

These fields are required in the CDS view entity (they are selection fields) and must not be displayed in the result list. How do I prevent these unwanted result list fields from being displayed?

Accepted Solutions (0)

Answers (2)

Answers (2)

VitaliHarl
Advisor
Advisor

Hi,

This looks not possible at the current moment inside Value Help.

@UI.LineItem: [ { hidden: true } ]  works only on the List Page, but not on Value Help.

Example:

List Page -  Sales Order selection field is available, but hidden from line items.

VitaliHarl_0-1709845432872.png

Value Help - same as for you. All other lineitem annotations works fine here, but hidden: true is not supported.

VitaliHarl_1-1709845560823.png

 

@Andre_Fischer , could you please let us know if there is any workaround to achieve expected result?

BR,

Vitali

 

 

MattDion
Participant
0 Kudos

@Andre_Fischer - any comment to Vitali's analysis? Can we expect support for this one missing annotation in a future release? We're not going to override the annotations maintained in RAP with Fiori annotations, because this value help is used in many apps and it will be too cumbersome to manage the maintenance.