1. In the Data set open method, add
reportContext.setGlobalVariable("mysql",sqlText); at the end . Here mysql is a Variable and SQLText is the variable you are writing your query against.
1. Add a Dynamic Text to the Report Layout
2. Add this code to the Dynamic Text .
reportContext.getGlobalVariable("mysql");Report should show the Query along with report output
Thanks
Vineet Joshi
------------------------------
vineet joshi
Asset Analytix
------------------------------