dpriya.pratheep Posted February 13, 2014 Share Posted February 13, 2014 How to use conditional style in crosstab header cellI 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now