Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Changing the Color of Cells within a CrossTab

$
0
0

Hello Community, I have a little problem. I have altered the origin simple cross tab example and have written an additional property, which makes possible to change the color of cells, if the value of the cell is e.g. <> X.

 

Properties are:

 

column, value, operator, color.

 

e.g.:

 

column = 2;

value = 50;

operator=”>”;

color=”red”;

 

Alter the background color of all cells in column 2, if value > 50 to color red.

 

So far so good, it works well. My problem is, that I have my method within the afterUpdate() function. When I do this for e.g. column 2, it works well. When I do this for any other column it clears the whole crosstab and renders just the last properties, all my background colors for the column 2 are lost.  But I want to remain them all within a tab. During the design time it works well. Each column gets its colors, but while starting the application all colors are lost and there are just my last properties. (for my last column).

 

To make a long story short: Is it possible to gather all values within my additional property (I did it so far) and to fire one single property change, to update one single array with all properties for all chosen columns?  Then I could further work with the array within my component.js. And change all colors for all chosen columns in a stroke.

 

Something like that:

 

var values = [];

values [0] = [“column1”, “operator”,”value”, “color”];

values [1] = [“column1”, “operator”,”value”, “color”];

values [2] = [“column1”, “operator”,”value”, “color”];

 

that.firePropertiesChanged([“values”]);

 

Any other suggestions are also welcome!

 

Regards,

 

Emil


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>