friedrichh Posted July 18, 2006 Share Posted July 18, 2006 So I will try the new forum I tried to use nested parameters in my query (suggestion from jasper forum) but now get the following error (I am using iReports 0.5.0 to create/compile my reports) when creating the query based on the reports: "General problem: Source file: inline evaluation of: ....." What I did is: create a string parameter P_ACC_YEAR and a second parameter P_AM_CY_FROM based on the first one default expr = "01.01.".concat($P{P_ACC_YEAR}) when I use "01.01.".concat("2006") instead it works. Whats wrong? friedrich Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 18, 2006 Share Posted July 18, 2006 Hi friedrich, thanks for using the new forum. The error is a parsing error of the expression: "01.01.".concat($P{P_ACC_YEAR}) Did you set a default expression for P_ACC_YEAR? Giulio Link to comment Share on other sites More sharing options...
friedrichh Posted July 19, 2006 Author Share Posted July 19, 2006 Yes I set teh default parameters, see the snippet from the jrxml file <parameter name="P_ACC_YEAR" isForPrompting="false" class="java.lang.String"><defaultValueExpression ><![CDATA["2006"]]></defaultValueExpression></parameter><parameter name="P_ACC_FROM" isForPrompting="false" class="java.lang.String"><defaultValueExpression ><![CDATA["01.01.".concat($P{P_ACC_YEAR})]]></defaultValueExpression></parameter> regardsfriedrich 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