Skip to Content

How to Format Group Header Text in Analytical column using groupHeaderColumn property

Nov 09, 2017 at 09:36 AM


avatar image
Former Member

Hi All,

I am using Analytical Table. In that I have an analytical column which displays dates as below


When I group on that Date column It was showing dates as shown below in Group header text .

But I want Dates to format and show in Group Header text same as dates shown in Column.

I am trying to format Group Header Text of Analytical column using property:groupHeaderFormatter

<Table:AnalyticalColumn autoResizable="true" visible="true" leadingProperty="WorkDate" grouped="false" groupHeaderFormatter ="formatDate">

for formatDate I wrote below code in controller

formatDate: function(v) {
			if (v !== null) {"sap.ui.core.format.DateFormat");
				var oDateFormat = sap.ui.core.format.DateFormat.getDateInstance({
					pattern: sap.ui.getCore().getConfiguration().getFormatSettings().getDatePattern("medium")


When I click on Group column, it was calling format function in Contoller but I am getting below error and it was failing to group.

could anyone please help how to use groupHeaderFormatter Property.


Best Regards,


created-on.png (11.5 kB)
console.png (19.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers