--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/025d95fd-53ea-4d1a-b512-70184f415e1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
it's great to separate report engine, not sure it match with your requirement, but worthy to check.
On Mon, Oct 17, 2016 at 2:58 PM, Fabio Canella <canell...@gmail.com> wrote:
Hello, in adempiere I made a modified ReportStarter class (and others like JRViewerProvider), to connect to jasperserver and show reports calling it from adempiere.There are several classes that I had modified because JasperServer return a pdf object instead of a JasperPrint object (and this made adempiere independent from jasper library version), I made a customization.jar package in the adempiere way for this functionality.
Now I would like to develop the same functionality in iDempiere, can you suggest me please, how can I do this in OSGI way ?
In general, i think It would be interesting to have a "print" functionality that call an external rest web service (passing the parameters) and show the result (pdf or html) inside iDempiere.
Best regards
FabioEffecitech
--
Runnable runnable = new Runnable() {
@Override
public void run() {
Window viewer = new PdfViewer(fileName, “ReportName”);
viewer.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
viewer.setAttribute(Window.INSERT_POSITION_KEY, Window.INSERT_NEXT);
viewer.setAttribute(WindowContainer.DEFER_SET_SELECTED_TAB, Boolean.TRUE);
SessionManager.getAppDesktop().showWindow(viewer);
}
};
AEnv.executeAsyncDesktopTask(runnable);
Best regards
Fabio