CDS year type / removing thousands separators from integer type

468 Views Asked by At

I want to display a column with years in my Fiori Elements List Report - Object Page. I tried to use the date format, but if you try to create a new entry you have to choose a day and month, as well. That should not be the case. Currently, I assigned the column the integer type, but that's causing the years to be formatted with a thousands separator (eg. 2,020 instead of 2020).

Can you provide a solution to this problem? Either by adjusting the date picker to just select a year or removing the thousands separator from the output? Or a different answer that fixes my issue.

Edit:
I found the @Common.isCalendarYear annotation but that annotation requires the corresponding field to be a string. So if I edit or create an entry in my Fiori Elements App I can enter any string I want (chars are allowed and the length is not limited to 4 except I define the field as String(4)). That should not be the case. Ideally, the app should use the date picker just with the year selection.

0

There are 0 best solutions below