cancel
Showing results for 
Search instead for 
Did you mean: 

sap:filterable="false" properties appear on the Smart Filter Bar

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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>

Answers (1)

Answers (1)

rb
Active Participant
0 Kudos

Did you try different UI5 Versions? Could be a problem with the version you are using.

0 Kudos

Hi Richard,

Thank you for your suggestion, however, unfortunately even after trying UI5 version 1.87, 1.100 and 1.102, it doesn't make a difference.