How to add Date filter in Column header of sap.ui.table

Hi,

I want to filter some records based on a specific date. So, I’ve added date filter in the column header in sap.ui.table. But it’s not filtering any records.

<Column width="auto" filterProperty="Start_Date" defaultFilterOperator="StartsWith">  <m:Label text="{i18n>opstartdate}"/>  <template>   <m:Text text="{path: 'tableModel>Start_Date', type: 'sap.ui.model.type.Date', formatOptions: { pattern: 'dd/MM/yyyy' } }"/>  </template> </Column>

I’m a beginner in SAPUI5. Any help is much appreciated.

Thanks,

Shubhrajit Chowdhury

Hi, I want to filter some records based on a specific date. So, I've added date filter in the column header in sap.ui.table. But it's not filtering any records. <Column width="auto" filterProperty="Start_Date" defaultFilterOperator="StartsWith"> <m:Label text="{i18n>opstartdate}"/> <template> <m:Text text="{path: 'tableModel>Start_Date', type: 'sap.ui.model.type.Date', formatOptions: { pattern: 'dd/MM/yyyy' } }"/> </template> </Column> I'm a beginner in SAPUI5. Any help is much appreciated. Thanks, Shubhrajit Chowdhury

How to add Date filter in Column header of sap.ui.table

Very Helpfull

User Rating: Be the first one !
Supporter Asked on May 24, 2017 in SAP PORTAL.
Add Comment
1 Answer(s)

    try to eliminate the errors by commenting out certain pieces of code..

    in your case try removing defaultFilterOperator=”StartsWith”>

    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.