Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: Using Table filter when a formatter function is used

$
0
0

Hi Igor

 

Take a look at the following example JS Bin BirthDate has a pattern and the column is filterable

 

The date is formatted to "dd.MM.yyyy" using a fomatter function dateShort.

 

The filter uses sap.ui.model.type.Date to fomat the pattern: "dd.MM.yyyy" back to a date format "yyyy-MM-dd"

 

UPDATE: just noticed if i put ">29.05.1960" in the date filter, the code changes the filter from an EQ to a GT, works for other operators too.

 

hth

jsp


Viewing all articles
Browse latest Browse all 8594

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>