You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ravi Subramanian <rs...@spikesource.com> on 2008/01/17 13:18:03 UTC

Deploy custom jasperreports in ofbiz

Hi,

I am trying to deploy a custom report in ofbiz application. 

I have created a JRXML report template using iReport and in the
controller.xml i have added the following handler

    <handler name="jasperreportspdf" type="view"
class="org.ofbiz.webapp.view.JasperReportsPdfViewHandler"/>

The request-uri definition for the report in controller.xml is

<request-map uri="AccountsReport.pdf">
        <security https="true" auth="true"/>
        <response name="success" type="view" value="AccountsReport"/>
</request-map>

The corresponding view-map is

 <view-map name="AccountsReport" type="jasperreportspdf"
page="/reports/repository/Accounts.jrxml" content-type="application/pdf"
encoding="none"/>

When i access the url i am getting the template of the report but no
rows are returned. But for the corresponding query in the database a
result set containing some rows is being returned. The accessing of the
data is not taking place.

Someone assist me with this please.

Thanks,
Ravi Subramanian.


Re: Deploy custom jasperreports in ofbiz

Posted by David E Jones <jo...@hotwaxmedia.com>.
How are you doing data querying/preparation for this report? I didn't  
see that in what you wrote up...

-David


On Jan 17, 2008, at 5:18 AM, Ravi Subramanian wrote:

> Hi,
>
> I am trying to deploy a custom report in ofbiz application.
>
> I have created a JRXML report template using iReport and in the
> controller.xml i have added the following handler
>
>    <handler name="jasperreportspdf" type="view"
> class="org.ofbiz.webapp.view.JasperReportsPdfViewHandler"/>
>
> The request-uri definition for the report in controller.xml is
>
> <request-map uri="AccountsReport.pdf">
>        <security https="true" auth="true"/>
>        <response name="success" type="view" value="AccountsReport"/>
> </request-map>
>
> The corresponding view-map is
>
> <view-map name="AccountsReport" type="jasperreportspdf"
> page="/reports/repository/Accounts.jrxml" content-type="application/ 
> pdf"
> encoding="none"/>
>
> When i access the url i am getting the template of the report but no
> rows are returned. But for the corresponding query in the database a
> result set containing some rows is being returned. The accessing of  
> the
> data is not taking place.
>
> Someone assist me with this please.
>
> Thanks,
> Ravi Subramanian.
>