Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically Hide a UI element In CDS View based Object Page

former_member182329
Participant
5,642

Hello Experts,

I have an requirement to hide a certain field in the Object Pages app based on CDS views. Although UI annotations like "@UI.hidden" and "@Consumption.hidden:true"are available, These annotations cannot be toggled dynamically based on any conditions. My requirement is to hide the fields in the view if the respective value is blank. Is it possible to dynamically control the field visibility in the front end application level by editing the "annotations.xml" file within the project!! Or an

Thanks in Advance,

Bince

3 REPLIES 3
Read only

SergioG_TX
SAP Champion
SAP Champion
0 Kudos
1,732

Bince,

i dont think that can be accomplished from your CDS view. if you wish to set the visibility on the UI, then i suggest you use the model to show/hide that column on the UI app

Read only

Joseph_BERTHE1
Active Contributor
Read only

GManousaridis
Participant
1,732

Hi,

A lot have changed since the publishing of this thread, but this post may help anyone interested!

Cheers,

George


George Manousaridis -- Break on through to the ABAP side