Skip to Content
avatar image
Former Member

How can I use Icon Tab bar filter and segmented button together?

Hi everyone,

I am trying to use Icon Tab Bar Filter and Segmented Button together. For example, Icon Tab Bar Filter is filtering data on base of Currency Code field, and segmented button is filtering data on base of Location ID. If i want to see the products with Location ID 0000000020 and with Currency USD, I need to select USD tab from Icon Tab Bar and 00020 from Segmented button.

But both filters are not working together. If I select Currency Code and then select Location ID. Filter is only implemented on Location ID.

Example of application is below.

I might need to use an array of filters to implement multiple filters together, but that is not working at this moment.

Can anyone help me to solve this?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 04, 2017 at 01:03 PM

    You can add multiple filters Ex: currency and local id.

       binding.filter( [ new sap.ui.model.Filter([
          new sap.ui.model.Filter("currency", sap.ui.model.FilterOperator.Contains, query ),
          new sap.ui.model.Filter("locationId", sap.ui.model.FilterOperator.Contains, query )
    Add comment
    10|10000 characters needed characters exceeded

    • By default if one of the button is selected then you should get the key.

      First, check is sbutton is retrieved right.

      Then, check if by default button is set as seletec.

      If above two options are true, you should get the selected key.