I am quite new to BIRT.
I ain’t getting any basic tutorial to work with BIRT within JSP.
In my application:
The customer will send a parameter, with which a complete report will be generated using information fetched from DB.
Can anyone please help me guide to a tutorial?
I am quite new to BIRT. I ain’t getting any basic tutorial to work
Share
First design your report with your query… if you want a particular name from a table ex:
select * from student_name ..like this u have to design your report after that
You have to bind your value i.e what name u wanted u just add like this shown below
url = “$report_url/frameset?__report=ur_report.rptdesign&ur_report_parameter=”+query
here the query implies that u have structure your query through javascript or by other means like…
var query = ‘where id= ‘+ur text box id.value (‘where id = 1’)
in your report u have to add a parameter for this url like(ur_report_parameter)
lastly u have to bind these url parameter from page to ur report parameter for this u have to click on ur dataset and choose script (layout,masterpage,SCRIPT,xmlsource,preview) in that select dropdown to beforeopen and add ur script like this
this.queryText = this.queryText+” “+(“ur_report_parameter”);
Note : while binding ur query to dataset u have to use (this.queryText) then u will have the result and here u can write ur own javascript…