Skip to Content

Multiple filters on a Table column SAPUI5/ XML

Hi All,

I have a xml View where we have one column which display the UserName(emp Id) .

Where the UserName and empid are two different entities in the oData.

In the xml , I am filtering with <Column xxxxx filterProperty ="empid">

So that by default it filter the column based on emp id only.

And in the init method we are passing the user empid so that the able has values related to the login user only.

Once the user clear the filter all the other data ( other users Username & empid ) appears.

Now we have the requirement that the user can filter the column by either UserName Or empid .

Any pointers will be helpful

Thanks in advance


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 08, 2018 at 12:11 AM


    I think it is better to do it this way,js,output

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Dennis,

      thanks for the suggestion.

      But we do not want to 2 separate columns ( as if we have 2 columns then we can define filter in XML ).

      In our case this combined column is a part of one table . So i am trying to use the code the code shared by you for my requirements