BIRT Exchange Forum: Light gray not working on BIRT 2.5.0 - BIRT Exchange Forum

Jump to content


 

BIRT Poll: Have you ever done any development work on mobile?

Yes - lotsYes - someNo - but plan toNo time or interestWhat is mobile?
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Light gray not working on BIRT 2.5.0 Rate Topic: -----

#1 User is offline   AlbertYu Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 23-May 11


Posted 22 March 2012 - 02:32 PM

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
0

#2 User is online   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 13091
  • Joined: 16-May 08


Posted 23 March 2012 - 06:20 AM

Where are you trying this at? Can you explain more?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#3 User is offline   AlbertYu Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 23-May 11


Posted 25 March 2012 - 01:21 PM

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");
}
0

#4 User is offline   AlbertYu Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 23-May 11


Posted 25 March 2012 - 01:22 PM

Any ideas?

Thanx.
0

#5 User is online   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 13091
  • Joined: 16-May 08


Posted 27 March 2012 - 06:26 PM

Sorry for the delay. I'm at EclipseCon, this week. Where are you recalling this global variable to set the color?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#6 User is offline   AlbertYu Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 23-May 11


Posted 01 April 2012 - 05:49 PM

View Postmwilliams, on 28 March 2012 - 01:26 PM, said:

Sorry for the delay. I'm at EclipseCon, this week. Where are you recalling this global variable to set the color?


That's OK Michael.

I am recalling the global variable on my main table's detail row's onRender script.

FYI, the global variable is being set on a sub-table of the main table's detail row's onCreate script.

Albert
0

#7 User is online   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 13091
  • Joined: 16-May 08


Posted 10 April 2012 - 07:21 AM

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?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#8 User is online   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 13091
  • Joined: 16-May 08


Posted 10 April 2012 - 07:26 AM

Most likely, you'll just need to use a color code for light gray instead of "lightgray".
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#9 User is offline   AlbertYu Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 23-May 11


Posted 10 April 2012 - 02:55 PM

View Postmwilliams, on 11 April 2012 - 02:26 AM, said:

Most likely, you'll just need to use a color code for light gray instead of "lightgray".


Thank you Michael! It worked!
0

#10 User is online   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 13091
  • Joined: 16-May 08


Posted 11 April 2012 - 07:05 AM

You're welcome!
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users