michael.kolowicz Posted December 5, 2014 Share Posted December 5, 2014 My goal is, generate a Popup to input the dynamic cascading parameters of a report there stored on JRS.A possible way could be using the same logic from iReport-Server Plugin.My state is following: ResourceDescriptor rpt = new ResourceDescriptor(); rpt.setWsType(ResourceDescriptor.TYPE_REPORTUNIT); rpt.setUriString(reportData.reporturi); int parametersCount = 0; List<ResourceDescriptor> iCtls = new ArrayList<ResourceDescriptor>(); List list = rpt.getChildren(); for (int i = 0; i < list.size(); ++i) { ResourceDescriptor rd = (ResourceDescriptor) list.get(i); if (rd.getWsType().equals( ResourceDescriptor.TYPE_INPUT_CONTROL)) { parametersCount++; iCtls.add(rd); } } ReportUnitRunDialog dlg = new ReportUnitRunDialog(frame, true); dlg.setInputControls(iCtls); dlg.setVisible(true);[/code]How can I get the informations for the used input controls in the report? The code show me no input controls? In the report is one Input control defined 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