Skip to Content
0

Format data in smart template List report

Apr 06 at 05:54 AM

26

avatar image

I'm using a smart template and I want to format data that is coming up in the table. Any ways to do it?

10 |10000 characters needed characters left characters exceeded

It would help if you could be more specific. Do you talk about values with a currency code, dates, time?

0

I want to format Date. Since it is smart Template and the table is rendered automatically as a responsive table, I have no control from UI to format Dates.The table has say 5 columns, out of which one is date.

I want to format date like Mar 26,2018 that is coming from backend

0

I also want to format time in another column. How do I go about achieving these?Please help

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Gregor Wolf
Apr 06 at 06:33 AM
0

From what I see in the Smart Table example metadata you should be able to control the format with the attribute sap:display-format.

Show 6 Share
10 |10000 characters needed characters left characters exceeded

Hi

Thanks for your response. But I have used the same. It still shows in the format m/dd/yyyy

<Property Name="Creationdate" Type="Edm.DateTime" Nullable="false" Precision="7" sap:display-format="Date" sap:label="Creation Date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>

0
Akshaya Parthasarathy
0

I'll get the ABAP developer to check this code.

METHODadd_date_display_format.


And also this date format is happening only in list report page, in object page it works fine.

SAPUI5 version of my backend system-1.38.6

0
Akshaya Parthasarathy
0

is there a method to format the date column from UI?

0

Tried no luck.It displays in same format


date.png

date.png (3.1 kB)
0