janak Posted December 20, 2007 Share Posted December 20, 2007 $V{basicSalary}.doubleValue()=($V{grossSalry}*0.5<6500)? $V{grossSalry}*0.5:($V{grossSalry}*0.5>=6500)?6500:0 Error is "the left hand side of an assignment is must be a variable"Post edited by: janak, at: 2007/12/20 09:23 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 20, 2007 Share Posted December 20, 2007 Hi, You should take a look at the samples provided in the /demo/samples folder of the project distribution package.Given the expression you wrote, it would take too many words to explain to you what is wrong with it. So you should start creating your reports by modifying existing reports supplied as samples. As a quick hint, in the variable's expression you should put only the right side of the assignment. Also make sure the result is a java.lang.Double object and not a primitive. I hope this helps.Teodor 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