cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply filter for a single column

mantrishekar
Active Participant
0 Kudos

Hello all,

I have a requirement to apply filter for a column in a table.

My Column consists of different values starting from T1 to T10.

now i would like to filter the values T1,T2,T3,T4 by using check box.

How can i achieve this.Please help me if anybody fac the same scenario.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi try this

JS Bin - Collaborative JavaScript Debugging

with Regards

Nandini

mantrishekar
Active Participant
0 Kudos

Hi nandini,

This is not my requirement.

I have a sap.m.table.Now in that table for one column i have values from T1 to T10.

Now i want to apply filter for more than 3 values of same column.If it is two values it is straight forward we can apply filters.but forr my requirement  i need to check with more than 3 values.

former_member9607
Active Participant
0 Kudos

Hi,

Check the link below.

https://sapui5.netweaver.ondemand.com/#docs/api/symbols/sap.ui.model.Filter.html

and see if new sap.ui.model.Filter(sPath, fnTest); fits for your requirement.

or

You can concatenate those 3 values in a single string and send it as single value to your odata service. In Odata service split that string in 3 values and filter accordingly.

Rg,

KK