Add support to run a Jasper Report as a macro
Donate to this project
Development Project Status: Completed
Public pledges can be made to this forum topic or email me directly by clicking here (link only works in the forum). Development will not commence until fully funded.
This project will enable Jasper Reports to be evaluated as macros, to enable complex macro processing.
It will be invoked by an xpath function which will take the name of the report to run, and the object to run with e.g.:
macro:run("Discharge Summary", .)
The report will be run against the supplied object, converted to text, and replace the macro text.
JIRA: http://jira.openvpms.org/jira/browse/OVPMS-1297
This project will enable Jasper Reports to be evaluated as macros, to enable complex macro processing.
It will be invoked by an xpath function which will take the name of the report to run, and the object to run with e.g.:
macro:run("Discharge Summary", .)
The report will be run against the supplied object, converted to text, and replace the macro text.
Comments
Re: Add support to run a Jasper Re as a macro (FUNDING PLEDGE)
Hi Tim,
I will fund half of this project.
Sam Snelling (Advanced Vetcare)
Re: Add support to run a Jasper Report as a macro
Hi Tim,
We will fund the other half of this.
Kind Regards,
Adrian (Eastside Vets)
Re: Add support to run a Jasper Report as a macro
I've uploaded a snapshot of OpenVPMS 1.7 to http://demo.openvpms.org/alpha/login that includes this change.
You can access it with the user name guest and password User1234.
For demo purposes, I've created a small Jasper report that lists the medications for the current patients' most recent visit.
To try it out, select a patient, and either mail, or edit something like a patient note and type:
@dischargesummary
Rather than using macro functions to launch report macros, a new macro type, "Report Macro" has been created. This is linked to the report template and has an expression that determines what the report is run with. E.g the @dischargesummary macro above has the expression
party:getPatientVisit($patient)
This feature goes further than the original spec; OpenOffice and Word templates may also be used as macros.
-Tim
Re: Add support to run a Jasper Report as a macro
Hi Tim,
in that alpha demo the guest user doesn't have permissions to be able to do anything. You just get access denied if you try and create anything.
Matt Y.
Re: Add support to run a Jasper Report as a macro
Guest permissions should now be fixed.
Regards,
Tim