cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a customized Column filter with a dropdown of fixed values in sapui5 Table?

0 Kudos
428

I have created a few columns which are visible inside a sap.ui.table.Table.

<Column visible="true">

<customData>

<core:CustomData key="p13nData" value='\{"columnKey": "column_name", "columnIndex":"0", "type": "string", "sortProperty":"column_name", "filterProperty":"column_name", "leadingProperty": "column_name"}'/>

</customData>

<Text text="column_name"/>

</Column>

thus the column has filter which also includes "contains" option for filtering.

Now the issue is that this certain Column is based on a smartfield which has 3 or 4 fixed values. So any record in the table will have any one of these fixed values under the column. How do I keep the input field in column filter as a dropdown consisting of only these fixed values?

Right now as per the code, the input field in filter needs text to be entered.

Accepted Solutions (0)

Answers (0)