h.steinbach Posted November 27, 2012 Share Posted November 27, 2012 Hi all,i am new to Jasper and would like to control the table rows with "print when expression"There is already an expression in this field:$V{REPORT_COUNT}.intValue() % 2 == 1 ? Boolean.TRUE : Boolean.FALSENow i would like to insert another choice. There is a var called "yavisieren". Its a boolean var. How do I insert it in the statement?$V{REPORT_COUNT}.intValue() % 2 == 1 & $F{yavisieren} ? Boolean.TRUE : Boolean.FALSE (that doesn't work)Can you help me? Link to comment Share on other sites More sharing options...
sanbez Posted November 27, 2012 Share Posted November 27, 2012 "yavisieren" is a variable? Then use $V instead $F And replace & to && Result: $V{REPORT_COUNT}.intValue() % 2 == 1 && $V{yavisieren} Link to comment Share on other sites More sharing options...
h.steinbach Posted November 27, 2012 Author Share Posted November 27, 2012 Sorry it is a field:I used && but then i get following error:FOP: Fehler beim Bearbeiten eines JasperReport-Layouts (/tmp/XJASPERLAY3423723798256680252.TMP) aufgetreten: Errors were encountered when compiling report expressions class file: 1. The operator && is undefined for the ar Link to comment Share on other sites More sharing options...
sanbez Posted November 27, 2012 Share Posted November 27, 2012 1. The operator && is undefined for the ar... Give more stack trace. This message inappropriate arguments. In this message give info about current type arguments in operator && Link to comment Share on other sites More sharing options...
eazydi Posted November 30, 2012 Share Posted November 30, 2012 Hello there,try... " ... $V{REPORT_COUNT}.intValue() % 2 == 1 && $V{yavisieren}.booleanValue()==true "resp.: as a Field instead of a Variable $F ... Link to comment Share on other sites More sharing options...
dieguito28 Posted November 30, 2012 Share Posted November 30, 2012 Look the lenguage report. 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