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)
Light gray not working on BIRT 2.5.0
AlbertYu
Hello,
I am trying to use light gray on BIRT 2.5.0, but I am having trouble.
I have tried both "lightgrey" and also "lightgray", but neither work.
Can anyone please help?
Thank you,
Albert
Find more posts tagged with
Comments
mwilliams
Where are you trying this at? Can you explain more?
AlbertYu
Yes, I can Michael.
I am trying to use it on an onCreate script. The following is my code:
if (row["C_A_P_NAME"] == "Retired") {
// Set to gray background
reportContext.setPersistentGlobalVariable(BirtStr.concat(row["A_COMPID"], "highlight"), "lightgray");
}
else {
// Set to normal white background
reportContext.setPersistentGlobalVariable(BirtStr.concat(row["A_COMPID"], "highlight"), "white");
}
AlbertYu
Any ideas?
Thanx.
mwilliams
Sorry for the delay. I'm at EclipseCon, this week. Where are you recalling this global variable to set the color?
AlbertYu
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="98296" data-time="1332901611" data-date="27 March 2012 - 07:26 PM"><p>
Sorry for the delay. I'm at EclipseCon, this week. Where are you recalling this global variable to set the color?<br /></p></blockquote>
<br />
That's OK Michael.<br />
<br />
I am recalling the global variable on my main table's detail row's onRender script.<br />
<br />
FYI, the global variable is being set on a sub-table of the main table's detail row's onCreate script.<br />
<br />
Albert
mwilliams
Sorry again for this post getting lost in the shuffle. My guess is that "lightgray" may just not be recognized by BIRT. If you try any other color that is from the default list of colors in the property editor, does it work?
mwilliams
Most likely, you'll just need to use a color code for light gray instead of "lightgray".
AlbertYu
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="98773" data-time="1334071583" data-date="10 April 2012 - 08:26 AM"><p>
Most likely, you'll just need to use a color code for light gray instead of "lightgray".<br /></p></blockquote>
<br />
Thank you Michael! It worked!
mwilliams
You're welcome!