Focal Point
Drill Down report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5211050922

May 22, 2007, 12:58 PM
Preetham
Drill Down report
Hello,

I have main report page which has tabular and graph report on one page. If I drill down on tabular report, same parameter should be passed to the graph. How I will do this?

Thanks,
Preetham
May 22, 2007, 01:37 PM
Alan B
Preetham

What is the output you are dealing with and how is the page constructed now?

This makes a difference to a solution.

Thanks


Alan.
WF 7.705/8.007
May 22, 2007, 02:17 PM
Preetham
Hello Alan,
Output is two tabular and 3 graph repots. All these reports are called as subreport in HTML Layout painter.


Thanks and Regards,
Preetham
May 23, 2007, 04:31 AM
Alan B
For now I'll (try to) keep it simple; you can expand this principle when this works.

In your Layout painter you have 1 report and 1 graph in frames 'report1' and 'graph1' respectively.

The report, called myrep, in frame called report1 has a drill down, say on the field COUNTRY, make this drill down a Javascript type with a javascript entry of 'window.parent.runDrill', no target frame and add a parameter of the field COUNTRY.

In the html painter, after the '//TODO: Add your event handler code here' and after the following '}'
add the code:
function runDrill(country){
window.frames['report1'].location.href='http://myserver/ibi_apps/WFServlet?IBIF_ex=myNewReport&COUNTRY='+country;
window.frames['graph1'].location.href='http://myserver/ibi_apps/WFServlet?IBIF_ex=myNewGraph&COUNTRY='+country;
}

So what you are doing is from the first report, calling a javascript function in the parent, which is the page itself, passing the parameter as part of the call. The javascript then loads the url, with the parameter, to each of the frames on the page.

Hope that makes sense, come back if any questions.

This message has been edited. Last edited by: Alan B,


Alan.
WF 7.705/8.007