Jump to content
Changes to the Jaspersoft community edition download ×

friedrichh

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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>

 

regards

friedrich

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...