rubedogg04 Posted July 9, 2008 Share Posted July 9, 2008 I have 1 report with 2 charts. One chart is on top of the other chart. I want one chart to display if the condition of the print when expression is met and the other if the other condition is met. I have a parameter that is passed 1,2,or 3 into it. If 1 is passed into the parameter give me a chart, if 2 or 3 is passed give me the other chart. here are my print when expressions:Code:$P{p_tab}!="1"$P{p_tab}="1"Theoretically this should work? I keep getting the following errors when i try and compile. ! The left-hand side of an assignment must be a variable! Cannot cast from a boolean to Boolean.[/ol] Is there something i am doing wrong here? Is this even possible to accomplish?Post edited by: rubedogg04, at: 2008/07/08 20:53 Link to comment Share on other sites More sharing options...
svenn Posted July 9, 2008 Share Posted July 9, 2008 First if your number is a string you are using the wrong syntax. You should be using $P{p_tab}.equals("1") and !($P{p_tab}.equals("1")) 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