Using the ReportUnitRunDialog from iReports

0

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);

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

michael.kolowicz's picture
Joined: Jul 23 2014 - 4:33am
Last seen: 4 years 4 months ago

0 Answers:

No answers yet
Feedback