Skip to Content
0
Mar 25, 2015 at 10:52 AM

How to do date filter in sap.m.table?

2303 Views

Hi All,

I want to add date filter for sap.m.table,

I have followed the explored code for filtering,

Am using ViewSettingsCustomItem control in fragment xml.

For other texts its working fine, But for the date its not working.

code:

customFilters.push(new sap.ui.model.Filter("key", sap.ui.model.FilterOperator.EQ, "25-03-2015", "X"));

aTableFilters.concat(oFilters);

oBinding.filter(aTableFilters);

Is this correct way for the date filter?

Please help me in this.

Thanks ,

Preethi