Skip to Content

Dynamically Hide a UI element In CDS View based Object Page

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 24, 2020 at 09:43 AM

    Hi,

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

    Cheers,

    George

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 12, 2020 at 09:54 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 24, 2016 at 04:40 PM
    -1

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.