waynes Posted March 27, 2007 Share Posted March 27, 2007 hi - iReports is great, I've used it for a couple of cool -- but simple :side: -- things in our org.However, I'm trying to do my 2nd subreport. The 1st was a test using Northwind :whistle:I have two reports which work ok standing alone.If I change the 2nd report to a sub report and pass it a field from the 1st report as a parameter it doesn't execute. The WHERE query in the 2nd report is changed from a simple "= 1" to "$P{field_name}". The cpu hovers around 50% and the javaw.exe process chews memory until I end the thread. Any suggestions please! some info:iReports 1.3.1, java build 1.5.0_04-b05 thanks! Post edited by: waynes, at: 2007/03/27 04:59Update:ok I started from scratch - I think the above behavior is due to my changing the field that is set to the $P from java.lang.Long to .String.When I leave it as .Long I get "Incompatible java.lang.Long value assigned to parameter". How else can I cast this field/parameter value to a string? Thanks!Post edited by: waynes, at: 2007/03/27 06:26 Link to comment Share on other sites More sharing options...
waynes Posted April 5, 2007 Author Share Posted April 5, 2007 seems ok after upgrading to 1.3.2, in the field parameter setting, I cast this field to a string, ie $F{field_to_pass_to_sub_report}.toString() happy days! 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