Show TOC

Configuring Card FiltersLocate this document in the navigation structure

You can add filters to all card types, by using the com.sap.vocabularies.UI.v1.SelectionVariant annotation term.

The following example shows filter configuration in the annotation document. The record set is filtered by the "TotalSum" property and returns values between 0 and 8000. You can provide multiple filters in the SelectOptions collection.

Sample Code
<Annotation Term="com.sap.vocabularies.UI.v1.SelectionVariant" Qualifier="bubble">
    <Record>
        <PropertyValue Property="SelectOptions">
            <Collection>
            <Record>
               <PropertyValue Property="PropertyName" PropertyPath="TotalSum" />
               <PropertyValue Property="Ranges">
                  <Collection>
                     <Record>
                        <PropertyValue Property="Sign"
                           EnumMember="com.sap.vocabularies.UI.v1.SelectionRangeSignType/I" />
                        <PropertyValue Property="Option"
                           EnumMember="com.sap.vocabularies.UI.v1.SelectionRangeOptionType/BT" />
                        <PropertyValue Property="Low" String="0" />
                        <PropertyValue Property="High" String="8000" />
                     </Record>
                  </Collection>
               </PropertyValue>
            </Record>
            </Collection>
        </PropertyValue>
    </Record>
</Annotation>