on 2020 Mar 18 11:47 AM
In the SAPUI5 application, I need to change SmartFilterBar default filter operator as Contains. But I am not able to do this. Can anyone help me on this
Request clarification before answering.
Hi,
You can change the presentation / selection variant using annotations.
Presentation / selection variant documentation (change example EQ to CP):
https://ui5.sap.com/#/api/sap.ui.comp.smartfilterbar.SmartFilterBar%23annotations/SelectionVariant
Options are listed here:
https://github.com/SAP/odata-vocabularies/blob/master/vocabularies/UI.md#selectionrangeoptiontype
Best regards,
Geert-Jan Klaps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to add custom data to SmartFilterBar. So this is at SmartFilterBar.
<mvc:View controllerName="cis.mm.controller.List" xmlns:mvc="sap.ui.core.mvc" xmlns:sfb="sap.ui.comp.smartfilterbar" xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">
<sfb:SmartFilterBar id="listFilterBar" app:useContainsAsDefaultFilter="true">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.