Is there a way to pass self-defined Ireport parameter?

Hi,all,

I want custom some jasper report ,how to pass myself defined parameters to report eng in dhis2?

···


此致

easy

莫愁前路无知己,天下谁人不识君。

Hi Easy,
Short answer is that you cannot without some Java code. You would need to use Jasper Reports server or build a module to handle the parameter.

I typically use BIRT reports when this is necessary. If you use the BIRT report server, generation of user defined paramaters is simple. With Jasper, it is a bit more complex, and you would need to write some code around this.

Regards,

Jason

···

On Fri, Sep 20, 2013 at 4:00 AM, easy lin_xd@126.com wrote:

Hi,all,

I want custom some jasper report ,how to pass myself defined parameters to report eng in dhis2?


此致

easy

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Easy,

What parameters do you need?

In standard reports, add a new report, select the Type=“Jasper report with JDBC data source”, then click on “Get jasper report template”.

If you open this file in iReport you will see that there are quite a few parameters being passed from DHIS 2 that you can make use of in your report, e.g. a lot of the uids needed for querying analytics tables. So far the parameters are related to orgunit and period. If you need something else please let us know and we can see if it makes sense to include in the standard template file.

Ola

···

Ola Hodne Titlestad (Mr)
HISP
Department of Informatics

University of Oslo

Mobile: +47 48069736
Home address: Eftasåsen 68, 0687 Oslo, Norway. Googlemaps link

On 20 September 2013 07:37, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Easy,
Short answer is that you cannot without some Java code. You would need to use Jasper Reports server or build a module to handle the parameter.

I typically use BIRT reports when this is necessary. If you use the BIRT report server, generation of user defined paramaters is simple. With Jasper, it is a bit more complex, and you would need to write some code around this.

Regards,

Jason


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, Sep 20, 2013 at 4:00 AM, easy lin_xd@126.com wrote:

Hi,all,

I want custom some jasper report ,how to pass myself defined parameters to report eng in dhis2?


此致

easy

莫愁前路无知己,天下谁人不识君。


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp