Jump to content
We've recently updated our Privacy Statement, available here ×

How to use ConditionalStyle in Crosstab header cell


dpriya.pratheep

Recommended Posts

How to use conditional style in crosstab header cell

I use usbdataset to display values in crosstab

 

<style 
name="Background_Style"
isDefault="false"
>
 
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($V{forecast}=="true")]]></conditionExpression>
<style 
isDefault="false"
mode="Transparent"
backcolor="pink"
>
</style>
</conditionalStyle>
</style>
 
where $V{forecast} is from 
 
<subDataset name="summaryDataSet" >
<field name="Month" class="java.lang.Integer"/>
<field name="forecast" class="java.lang.String"/>
</subDataset>
 
In crosstab 
<cellContents mode="Opaque" style="Background_Style">
 
If i use
<conditionExpression><![CDATA[new Boolean("true"=="true")]]></conditionExpression> It is working fine with attached screen shot. 
How can use variable forecast from subdataset to style ?
Read somewhere that subdataset variable can not accress outside ..If so how can do ?
 
Any help or link to tutorial is higly appreciated.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...