Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
How to 'add elements'/'change values' outside onPrepare()?
Migrateduser
Hi,<br />
<br />
using Birt 2.6.2 I want with a script, <span class='bbc_underline'>manually </span>set data in grid elements outside onPrepare().<br />
<br />
I've a grid 3 cols and 40 rows.<br />
During onPrepare() of the grid I add 40 labels in the 1. col. Works!<br />
During a following script, I want to use values from a dataset and put these somehow in the grid, <br />
e.g into col 2 and set at this time styles as e.g. borders.<br />
<br />
But as I read, I can't add further labels outside onPrepare();<br />
<br />
But the onFetch() script ist running after onPrepare(), so I'll have the data to late.<br />
I put these data in a global array, but where can I reuse them for putting them in my report?<br />
<br />
1.) How can I change labels or set data to maybe "Dynamic Text" or "Data" elements in later scripts?<br />
As onCreate(), onRender(), onFetch()?<br />
<br />
2.) If I define globals vars in initialize(), <br />
how can I use them in the expression builder for Dynamic Data Fields or Dynamic Text Fields?<br />
<br />
<br />
<br />
regards
Find more posts tagged with
Comments
There are no comments yet