Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 31, 2018 at 04:00 PM

    i have the same problem. I think this is SAP intenal issue.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 09, 2018 at 12:58 PM

    Hello Krzysztof,

    you have to take in account when setting the groupHeaderFormatter for AnalyticalColumn control as a property in the XML view, the context (e.g. the controller object) is not bound to the fomatter function. Using the setter method while binding the context explicitly to the function should solve this.

    Best, Christian
    Add comment
    10|10000 characters needed characters exceeded