prosvet Posted July 3, 2009 Share Posted July 3, 2009 Since this morning, for a new report (Groovy or not) it gives the following error message when trying to preview:"The initial value class is not compatible with the variable's class"Simplifying the report, I came to the simplest case to reproduce: variable is a simple java.lang.String to be able to put a label inside. The error comes even for one variable, not placed on the repoirt layout. Report is empty. (cf. attachment)Any idea?Igor Link to comment Share on other sites More sharing options...
prosvet Posted July 4, 2009 Author Share Posted July 4, 2009 Apparently, when I add manually variable's initial value in the jrxml file (cf. code) or modify an existing (pre-3.5.2 created jrxml file) variable's initial value, everything is OK.However, when I create the variable in iReport and type in initial value, the error appears. So, for the moment, I have to create all my labels with iReport, position them, and then add initial values manually in jrxml file. Feasible, but cumbersome.Code: <initialValueExpression><![CDATA["test"]]></initialValueExpression> 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