What's about writing this into the howto section of the wiki? Cheers, Henner
> -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im > Auftrag von Luca Fossato > Gesendet: Donnerstag, 3. März 2005 12:55 > An: 'dbforms' > Betreff: [dbforms] How-to use JasperReports integration to > print the data of the current record displayed by a dbforms table > > Hi, > > As suggested by Henner, I found a simple way to print the > data displayed by a "detail" dbforms form using a gotoButton > and JasperReports integration. The example shown below > defines a dbform table that displays the data of a given > record. The record is selected using the filter attribute. > > <db:dbform tableName = "MY_TABLE_NAME" > maxRows = "1" > autoUpdate = "false" > captionResource = "true" > followUp = "myFollowUp.jsp" > filter = "<%= filterOnRecordKey %>"> > > ... > <db:body> > ... > <db:gotoButton caption="print.current.pdf" > destTable="MY_TABLE_NAME" > destPos="<%=position_MY_TABLE_NAME > %>" > destination="/jasperreport/prova" > singleRow="true"/> > ... > </db:body> > > > It is sufficient to use the the destPos attribute and set it > with the value of position_MY_TABLE_NAME jsp variable. > I didn't find this information into the guide and the > testExports.jsp page under the bookstore example application > uses a gotoButton with keyToKeyToDestPos attribute: > > <db:gotoButton caption = "print current as PDF" > destTable = "BOOK" > keyToKeyToDestPos = "currentRow" > singleRow = "true" > destination = "/jasperreport/books/> > > Maybe this information could be useful... > > > Regards, > Luca > > > > > > ------------------------------------------------------- > 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