Change grid cells content dynamically [message #1061668] |
Mon, 03 June 2013 08:38  |
Eclipse User |
|
|
|
Hello,
I am working on an already created BIRT report.
The report contains 10 charts maximum, but they can be fewer if no data exists for some of them.
The page is divided in 4 grids with 1 row and 3 cells each. Each cell contains a chart. The charts are meters.
So the component hierarchy is the following:
Body
|
-- Grid
|
---Row
|
--- Cell
|
--- Chart
--- Cell
|
--- Chart
--- Cell
|
--- Chart
-- Grid
|
---Row
|
--- Cell
--- Cell
--- Cell
...etc.
In the onRender event for each chart, the ranges are set dynamically from data etc.
So normally the chart display looks like this:
1 2 3
4 5 6
7 8 9
10
But, if some charts are not displayed, for example only 8 appear, it looks like this:
1 2 3
4 5
6 7 8
The problem is the requirements are that if some charts are missing, the line should be completed with the ones below, so the configuration above should look like this:
1 2 3
4 5 6
7 8
I do not know how to achieve this, do you have some suggestions how to fill the grid cells dynamically?
I am using BIRT 2.5.2
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03412 seconds