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
birt crosstab get data from dataset
Migrateduser
<p>i want to make a global variable which get the data from a column in the dataset<br>
and use this global variable in a crosstab report.</p>
<p> </p>
<p>i defined a new variable and set this variable as a global variable, using below code</p>
<p> </p>
<p>var naturalcolor;<br>
reportContext.setPersistentGlobalVariable("naturalcolor",dataSetRow["natureColor"]);</p>
<p> </p>
<p>then i use the ( naturalcolor ) in the measure value of the crosstab</p>
<p> </p>
<p> </p>
<p>importPackage(Packages.java.lang);<br>
reportContext.getPersistentGlobalVariable(naturalcolor);<br>
if ( measure["Value1"] != null ){<br>
this.getStyle().backgroundColor = naturalcolor;<br>
}</p>
<p> </p>
<p>but i think that the report doesn't seem to read the global variable as the value didn't change it's background color.</p>
<p> </p>
<p>Any Help Please ??!!!!<br>
</p>
Find more posts tagged with
Comments
There are no comments yet