on 07-28-2022 6:08 AM
Hi,
I want to hide/show a facet based on the value selected in a value-help.
The approach that I have followed is as below:
I have created a virtual element of type 'boolean' in CAP CDS. I want to set the value of this virtual element on the basis of the value selected in the value help.
After the virtual element is initialized, I want to use this annotation in the UI '![@UI.Hidden]:virtual_element' to hide/unhide the facet.
I have tried printing the virtual element on the UI. It is showing as 'Yes' for true and '-' for false.
Regards,
Nidhi
Hello Nidhi,
The issue seems to be with the data type you are using. Could you try with data type something similar to CHAR1 in ABAP? The same functionality works perfectly fine in RAP using same approach, as suggested in this blog
blogs.sap.com/2022/01/27/hiding-a-tab-dynamically-in-fiori-object-page-using-virtual-elements-in-rap-restful-abap-programming-model/comment-page-1/#comment-629814
Thanks,
Aman Garg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.