How to use a table column filter with formatted columns?

后端 未结 1 453
清酒与你
清酒与你 2021-01-28 09:14

I have a JSON model which contains, among others, a few date values which are stored as epoch values:

var oData = [{
    string : \"SomeValue\",
    date   : 140         


        
相关标签:
1条回答
  • 2021-01-28 09:49

    Using a date type might solve this issue

    var dateType = new sap.ui.model.type.Date({
     pattern: "yyyy/MM/dd"
    });
    
    ...
    
    sortProperty   : "date",
    filterProperty : "date",
    filterType: dateType
    

    look at this example for a simple use case on birthday column

    0 讨论(0)
提交回复
热议问题