Jump to content
We've recently updated our Privacy Statement, available here ×

iReport 3.1.0 (QueryExecutor, IReportPlugin, ...)


mlehnert1974

Recommended Posts

Hello,

we have implemented a custom QueryExecutorFactory with a custom query language in JasperReports. On the iReport side we implemented an it.businesslogic.ireport.plugin.IReportPlugin which registeres the QueryExecuterFactory, the custom it.businesslogic.ireport.IReportConnection and so on. It looks something like this:

        MainFrame.getMainInstance().addConnectionImplementation(CustomIReportConnection.class.getName());
        // Set JR properties.
        CustomJRProperties.registerJRQueryExecuterFactories();
        // Register custom query language in iReport
        QueryExecuterDef qed = new QueryExecuterDef ();
        qed.setClassName(CustomQueryExecuterFactory.class.getName());
        qed.setFieldsProvider(CustomFieldsProvider.class.getName());
        qed.setLanguage(CustomJRProperties.QUERY_LANGUAGE_CUSTOM_QUERY);
        // Register query language in ireport.
        MainFrame.getMainInstance().addQueryExecuterDef(qed, true);
        // The dialog has to be refreshed
        ReportQueryDialog rqd = new ReportQueryDialog(MainFrame.getMainInstance(), false);
        MainFrame.getMainInstance().setReportQueryDialog(rqd);
 

Is this possible with the new iReport 3.1 NB ? How? Or are we stuck with classic iReport 3.0?

Thanks.

Marc.

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