Jump to content
Changes to the Jaspersoft community edition download ×

Using the ReportUnitRunDialog from iReports


michael.kolowicz

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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