Jump to content
Changes to the Jaspersoft community edition download ×

Parameters not working


2004 IR Help

Recommended Posts

By: Tom Wa - mrtom

Parameters not working

2004-03-30 23:46

I've had limited success in adding parameters in iReport. After adding a simple Integer the javac always produces errors similar to

 

/home/taw9/apps/classic.java:102:?inconvertible?types found???:?int required:?java.lang.Integer value?=?(java.lang.Integer)(509);

 

The XML iReport has produced for my param was:

 

<parameter name="msid" isForPrompting="true" class="java.lang.Integer">

<defaultValueExpression >

<![CDATA[509]]>

</defaultValueExpression>

</parameter>

 

(whitespace is mine)

 

If I remove the default value it works although produces a blank report (as in another post) - when running the same report under the jasper sample webapp it works.

 

I saw something posted somewhere about a java system property I can use so iReport doesn't delete the .java files but can't find it any more. That would help me a little.

 

Thanks in advance.

 

 

 

 

By: Tom Wa - mrtom

RE: Parameters not working

2004-03-30 23:53

Sorry, I guess the report is empty as I no longer have a default value for my parameter. :-P

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...