on 05-04-2017 10:49 AM
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!
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 )
],false)
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But it is not getting the selected key of segmented button when I am selecting an option from Icon Tab Bar. Here is the code.
SetQuickFilter: function (oEvent) {
var tkey = oEvent.getParameter("key"),
obinding = this._oTable.getBinding("items");
/* idSegmented is the ID for Segmented button */
var sbutton = this.byId("idSegmented"),
skey = sbutton.getSelectedKey();
obinding.filter([new sap.ui.model.Filter("CurrencyCode", sap.ui.model.FilterOperator.Contains, tkey), new sap.ui.model.Filter("ItemPosition", sap.ui.model.FilterOperator.Contains, skey)], false);
}
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.