mlehnert1974 Posted November 4, 2008 Share Posted November 4, 2008 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 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