federico.cattozzi Posted July 7, 2011 Share Posted July 7, 2011 Importing my reports from JS 3.5 to JS 3.7.1 or 4.1 I think to have found a bug on instantiation of the built-in parameter REPORT_MAX_COUNT.Im my reports a user can choice REPORT_MAX_COUNT number from a "Single Select List of Values".This works always in JS 3.5, but in JS 3.7.1 or 4.1 doesn't work if in the same form "Cascading Input Controls" are present.If I remove them report runs, but links inside it that send REPORT_MAX_COUNT to other reports don't work.See attacched images to understand the two errors. Link to comment Share on other sites More sharing options...
ramnik Posted July 8, 2011 Share Posted July 8, 2011 This looks like bug ..can u please log issue in tracker Ramnik KaurSenior QA Engineer Link to comment Share on other sites More sharing options...
federico.cattozzi Posted March 7, 2012 Author Share Posted March 7, 2012 I have a workaround:Code:public class MyEngineServiceImpl extends EngineServiceImpl { public OrderedMap executeQuery(ExecutionContext context, ResourceReference queryReference, String keyColumn, String[] resultColumns, ResourceReference defaultDataSourceReference, Map parameterValues) { Object reportMaxCount = parameterValues.get(JRParameter.REPORT_MAX_COUNT); if (reportMaxCount instanceof String) parameterValues.put(JRParameter.REPORT_MAX_COUNT, Integer.valueOf((String)reportMaxCount)); else if (reportMaxCount instanceof BigDecimal) parameterValues.put(JRParameter.REPORT_MAX_COUNT, Integer.valueOf(((BigDecimal)reportMaxCount).intValue())); return super.executeQuery(context, queryReference, keyColumn, resultColumns, defaultDataSourceReference, parameterValues); }} 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