BIRT Exchange Forum: Java Event Handler in Report - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Java Event Handler in Report Unable to call Label Event Handler in Report Rate Topic: -----

#1 User is offline   ub14 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 17-May 08


Posted 21 June 2012 - 07:06 PM

Hi,

I am new to using java event handler in BIRT Reports. I have created one sample example to change the color of Label which is given in eclipse Help. I have imported required jar files and setup JRE environment.

The java code is compiled without any errors and i am able to set the event handler to label in BIRT Report.
When i execute the report, the label background is not changing to red.
I would like to know , anything i am missing here. attached .java file for reference.

BIRT Eclipse Help

Thanks in advance
bhaskar

Attached File(s)


0

#2 User is offline   HPP Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 62
  • Joined: 11-February 11


Posted 21 June 2012 - 11:19 PM

in birt reports itself u can change background property of the label to red. and I am not sure whether is this ur doubt. if not pls explain precisely.
0

#3 User is offline   Rajesh kmr Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 58
  • Joined: 06-September 11


Posted 21 June 2012 - 11:38 PM

replace the backgroundAttachment
to

.backgroundColor="red"
0

#4 User is offline   ub14 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 17-May 08


Posted 21 June 2012 - 11:53 PM

Hi,

I am trying to use java event handler to do this. I know that we can change this property manually in BIRT Report. Trying to understand the use java event handlers in BIRT. So below is the code for this, but somehow its not changing the color.

Thank in advance
bhaskar
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