0
votes

My SAP UI5 view contains a SmartTable that's bound to a regular entity set in my OData. The data shows fine and is formatted as intended.

I can sort the columns by pressing the column headers and when I press the table's "Settings" button (cogwheel icon), the menu allows me to choose sort options from a helpful list of columns.

enter image description here

However, when I switch to the "Filter" tab, all I get is an unhelpful tab with "Include" and "Exclude" sections that only show general "Field Name" and "Value" entries instead of offering me the table's columns for specifying filters:

enter image description here

What do I need to add to the OData or the SmartTable's properties to make this tab show a list of columns as well?

1

1 Answers

0
votes

What's missing was the filterProperty on the sap.ui.table.Columns that specify the SmartTable's look and feel:

<SmartTable ...>
  <Table ...>
    <columns>
      <Column 
          customData:p13nData="{
            leadingProperty: 'Version',
            columnKey: 'Version',
            sortProperty: 'Version',
            filterProperty: 'Version'  // <---
          }">
        ...