BIRT Exchange Forum: Dynamic Marker Line in BarChart different for each group - 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

Dynamic Marker Line in BarChart different for each group Put a dynamic Marker Line different for each group of value Rate Topic: -----

#1 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 14 May 2012 - 10:54 PM

Hi,

In this example, a dynamic marker line is putted on the bar chart.
By script I find the value I want to put on the chart :
reportContext.setPersistentGlobalVariable("MAX_PRODUCT", this.getValue());
on "onCreate"

and use with onRender script on the graph.

But
I would to group my report by productlines and made the dynamic value change to being the max of each product line...
But I don't find how to change the value in each group

Any Idea ?

Thanks in advance for your answer.

Vincent

Attached File(s)


---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#2 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 16 May 2012 - 06:07 AM

Hi

Answer to myself ;-)
I put the
reportContext.setPersistentGlobalVariable("MAX_PRODUCT", this.getValue());
in onRender instead of "onCreate"

The first time I run the script I have an error...but now It seems to be good...

Regards
---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
0

#3 User is offline   vkober Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 20-January 11


Posted 16 May 2012 - 07:59 AM

Sorry ;-)

in onCreate method, I declare the Variable :
reportContext.setPersistentGlobalVariable("MAX_PRODUCT", "");


in onRender method, I find the good value :
reportContext.setPersistentGlobalVariable("MAX_PRODUCT", this.getValue());


And it's good

Regards
---
Vincent
In charge of Business Intelligence System
Grenoble Alpes Métropole
France
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