You can extend the url used in the gotoButton with a parameter - something
like jasperreports/bla?param1=test
Then you retrieve this parameter from inside your jasperreports using the
${PARAM}.getParameter("test") method. The param object is of type
org.dbforms.servlets.reports.ReportParameter and it's filled and sended the
the jasperreport.
Oh, you must define it inside your report:
<parameter name="PARAM" isForPrompting="true"
class="org.dbforms.servlets.reports.ReportParameter"/>
Cheers,
Henner
> -----Urspr�ngliche Nachricht-----
> Von: Luca Fossato [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 4. M�rz 2005 13:47
> An: Audun V. Nes
> Cc: dbforms
> Betreff: Re: [dbforms] JasperReports integration and
> parameters from dbforms
>
> Hi Audun,
>
> I have just started to study Jasper reports... and now I'm
> trying to understant some features of the tool.
> So I am NOT the guru of the topic ;^)
> Anyway, as Henner told me, you could give a look at
> ReportServletAbstract.getDataForReport method to understand
> the DbForms integration.
> Here you can see you could create a new JRDataSourceAbstract
> object (the jasper reports datasource) using:
>
> - a Collection object
> - a DbForms ResultSet vector
> - the data stored into the current webEvent object
>
> Note the JRDataSourceRSV construtor (the one used by DbForms
> web event) uses a Map object... maybe you could put your
> informations in that map.
> Probably you should write a bit of code...
>
> Regards,
> Luca
>
>
> Audun V. Nes ha scritto:
>
> >Hi
> >
> >I have seen your discussion on passing the current row to
> jasper. What
> >I am looking for is a little more basic...I need to pass a parameter
> >from dbforms to jasperreports to use in a dynamic where clause, but
> >there doesn't seem to be such option in gotButton ?
> >
> >
> >-------------------------------------------------------
> >SF email is sponsored by - The IT Product Guide Read honest & candid
> >reviews on hundreds of IT Products from real users.
> >Discover which products truly live up to the hype. Start reading now.
> >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> >_______________________________________________
> >DbForms Mailing List
> >
> >http://www.wap-force.net/dbforms
> >
> >
> >
> >
> >
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide Read honest &
> candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> DbForms Mailing List
>
> http://www.wap-force.net/dbforms
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms