Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Dinamic TOC background color
Frenkys
<p>Is possible to set dynamically single TOC background color on one particular group value (ex: if on group one dataSetRow["COLOR"] = "red" then background = "red", if on group one dataSetRow["COLOR"] = "yellow" then background = "yellow", and so on? </p>
<p>Thanks</p>
Find more posts tagged with
Comments
Clement Wong
<p>Out of the box, it's possible to set a style on the TOC and the TOC entires as a whole, but not individually.</p>
<p> </p>
<p>For open source BIRT, you could potentially modify ajax\ui\app\AbstractBaseToc.js to customize the handling the logic of styles of the TOC elements. I haven't tried -- in the report design, you can have a text (HTML) report item that is called would be called on each page where you set the colors in a JavaScript variable (map or array).</p>
<p> </p>
<p>Then, in the JavaScript you can check for the existence of the JavaScript variable and change the style accordingly.</p>