Hi,
I have just recently started working on SAP UI5.
I am trying to build a simple application that pulls out data from a JSON file and displays the same in 3 tables and a list (across 2 pages). One of the features required by my application is to group the contents of columns together when they are duplicate and since the sap.m.table provides this feature (using mergeDuplicates) I have used the same for building my tables.
However, I also have a couple of other requirements that I am finding very difficult to implement using this table. They are listed below:
1. For one table I want to change the background colour for some of the column headers. I do not want the background colour of the column data changed. Also to further complicate this, I would like to set different colours for different column headers. Would you be able to give me some hints on how to go about this?
2. For another table I want to change the background colour of the cells of one column based on the value of the cell. In this case, using factory functions I am able to conditionally change the colour of either the entire row, or only a small area around the cell text, but not the entire cell. Is it actually possible to colour the entire cell? If yes, how?
Any help with these two issues would be much appreciated.
Thanks,
Mary