cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Fiori List report action via CDS based on content

former_member852121
Discoverer
0 Kudos

Hello Experts,

i want to hide action buttons based on the content displayed in the list. If possible via ABAP CDS. We are not yet using RAP.

I want to hide these two buttons in case the UEP column is true.

The buttons could also be placed in the list rows directly as seperate columns if it helps to hide them based on the row value.

The buttons were added via Metadata extension in the CDS.

Is this possible?

Thanks,

Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

arunmbarec
Participant
0 Kudos

Hi Peter,

If you are using RAP, here is how it can be acheived.

In the behaviour definition, bind the action to the instance features.

action ( features: instance ) 

Submit result[1] $self

To control this action, in the behaviour implementation class , in the method GET_INSTANCE_FEATURES.

in the result table, you can fill the action with either enabled or disabled.

Regards,
Arun K

former_member852121
Discoverer
0 Kudos

Hi Arun,

thank you for your answer. We are not yet using RAP just plain ABAP CDS with generated SEGW Odata Service.

Regards,

Peter