cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Column Heading of a List Report created using Fiori Elements?

former_member207873
Participant
0 Kudos

Hello Experts,

I would like to get the object where list report column headings are stored and would like to overwrite it with some special logic. How can i find the same using java script coding ?

Accepted Solutions (0)

Answers (1)

Answers (1)

leonikussmaul
Product and Topic Expert
Product and Topic Expert
0 Kudos

Below is the blueprint of how this can be achieved in your controller very easily. Of course the conditions need to be defined in the loop and depending where the header data is coming from, you need to i.e. store and retrieve it from a model..

var oTable = this.getView().byId("TableId");
var a Columns = oTable.getColumns();
aColumns.forEach(oColumn =>{
//text can be set dynamically based on coniditions
oColumn.getLabel().setText("Your Text");
});

Hope this helps.