Sharing the solution as I managed to get it to work:
onInit: function() { //Object that is called for formatting the text on group header this.formatGroupHeaderText = { CaseText: function(sValue){ return sValue.substring(0, sValue.lastIndexOf('#')) //do formatting here } }; }, onBeforeRebindTable: function(oEvent) { var oTable = sap.ui.getCore().byId("tableName"); var oColText = oTable.getColumns()[0]; //sPath should match the function in the object called above. var sPath = "CaseText"; oColText.setGroupHeaderFormatter(this.formatGroupHeaderText[sPath]); }
Regards,
Melwyn
Add comment