on 06-13-2021 3:26 AM
Hi experts,
I'm working on a CAP project with a Fiori Elements UI. I have a description field for a product. I want to display this on the Object Page, but I don't want any reference to it to show up in tables. I'm not sure how to do this though.
Annotation @UI.Hidden will hide it everywhere, including the object page. Is it possible to override this annotation for specific cases?
Or, is there a way to target @UI.Hidden specifically to sorting, as with UI.LineItem?
For example, this code hides the description field from being displayed as a table column. However, it still shows up in the filter menu AND in the sort menu.
LineItem : [
{
Value : descr,
![@UI.Hidden]
}
],
Using the annotation @UI.HiddenFilter I was able to remove the descr field from the filter menu. However, I could not find a matching annotation for the sort menu.
I tried using a similar format for LineItem by assigning [![@UI.Hidden] as below:
PresentationVariant : {
Text : 'Default',
SortOrder : [{Property : descr, ![@UI.Hidden]}],
Visualizations : ['@UI.LineItem']
},
However, this also had no effect on the UI. Is there a way to meet my requirement here, or does CDS and Fiori Elements not yet support this functionality?
Thank you very much for your time!
Hi Brian
i was able to solve it by annotationg the entity with sort restrictions
in case of cap
@Capabilities.SortRestrictions.NonSortableProperties : [ ... proreties to hide ]
Br
Evgeniy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
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.