on 06-10-2022 11:06 AM
Hi there,
I am facing an issue that non-filterable properties appear on the Smart Filter Bar on Fiori applications unless they are annotated as HiddenFilter="true" individually. Properties that have sap:filterable="false" in metadata shouldn’t be shown in the Smart Filter Bar and as far as I understand, this should be handled automatically by UI5. Is that correct? If so, could anyone advise me on how to apply it if there is a configuration in the manifest.json or elsewhere?
OData
Volume field (property name "Counter") has sap:filterable="false"
<EntityType Name="SampleType" sap:semantics="aggregate">
<Key>
<PropertyRef Name="GenId"/>
</Key>
<Property Name="Counter" Type="Edm.Decimal" Precision="18" Scale="0" sap:label="Volume" sap:aggregation-role="measure" sap:filterable="false"/>
<Property Name="TrackingNumber" Type="Edm.String" MaxLength="255" sap:label="Tracking Number" sap:aggregation-role="dimension"/>
<Property Name="TrackingStatus" Type="Edm.String" MaxLength="255" sap:label="Transit Status" sap:aggregation-role="dimension"/>
</EntityType>
Smart Filter Bar filter options in the App (Analytical List Page)
I couldn’t find a similar issue in this forum and also documentation in the SDK, so any help would be much appreciated.
Thank you,
Ami
According to the SAP Support, the annotations from the metadata and the annotations from a separate annotation file are not merged. That means we needed to define non-filterable properties in the annotation files like this:
<Annotations Target="default.v2/Sample">
<Annotation Term="Capabilities.FilterRestrictions">
<Record Type="Capabilities.FilterRestrictionsType">
<PropertyValue Property="NonFilterableProperties">
<Collection>
<PropertyPath>Counter</PropertyPath>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try different UI5 Versions? Could be a problem with the version you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.