dtfast Posted March 30, 2011 Share Posted March 30, 2011 I am using a copy of a conditional style in each of my subreports that tests a variable in a subdataset of that subreport. I tested each subreport in ireport and it work perfectly but when I run it in my webapp where all the subreports are combined it does not work. Could there be a scoping issue with the variable? (full subreport in attachment) Code:<style name="Table_TD_noRepeat" style="Table_TD" forecolor="#FFFFFF"><box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2"> <topPen lineWidth="0.0" lineColor="#000000"/> <leftPen lineWidth="0.0" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineColor="#000000"/></box><conditionalStyle> <conditionExpression><![CDATA[new Boolean((($V{subsetCount}-1) % 4 == 0)| $V{subsetCount} ==0)]]></conditionExpression> <style forecolor="#000000"> <box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2"> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.0" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineColor="#000000"/> </box> </style></conditionalStyle></style> 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