Focal Point
[SOLVED] submit multi reports in different iframes thru drilldown

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

January 03, 2012, 02:00 PM
MrM
[SOLVED] submit multi reports in different iframes thru drilldown
I have a HTML page (built with the composer) with three iframes. By starting report_1 is loaded in iframe1.
Is it possible from report_1 thru drilldown (not a multi) to start report_2 in iframe2 and at the same time report_3 in iframe3.
How should that be done?

This message has been edited. Last edited by: Kerry,
January 03, 2012, 03:32 PM
Waz
Javascript or possibly using TARGET, depending on the browser.... I think.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 03, 2012, 04:20 PM
FrankDutch
i have done this on a microsoft internet page




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

January 04, 2012, 03:10 AM
Ram Prasad E
Using FOCEXEC along with TARGET command will allow only one drill report.

Since you need to load 2 reports in 2 different iframes, you have to use javascript. On click of the text in first report, pass the value and reload the iframe by reassigning value to iframe.src property of iframe_2 and iframe_3.
Refer below sample snippet
onclick_event(){
iframe_2.src="www.google.com"; /*you need to direct this to WF procedure
iframe_3.src="www.yahoo.com"; /*you need to direct this to WF procedure
}


Hope this helps.


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
January 05, 2012, 05:55 AM
linnex
Hi MrM,

If you do not really need a site composed of 3 iframes, you could also try creating 2 pages each with two iframes. The first page contains report1 in frame1 and drilldown-page (page 2) in frame2. You can drilldown to an HTML page from report1 as well.
This 2nd page may contain your 2 drill-down target reports and will also forward the necessary variables to reports 2 & 3.
Nevertheless there is one limitation (AFAIK): there seems to be a bug with passing on multi selection variables to a HTML page (only the first variable will be read by the page - noticed in 7.6.10, still there in 7.7.0.1) - a case is opened for this one with IBI but I was told that this is not regarded an error - for some reason whatsoever.

Regards
Linne


WebFOCUS 7.7.03
January 12, 2012, 04:36 AM
MrM
I'm just back on the job, thanks for all the replies. I will try all the different options.
January 12, 2012, 05:09 PM
Dan Satchell
Right-click on each frame, select Frame Properties, and set the Hyperlink Properties to execute the appropriate external report procedure. If you want the reports to run automatically when the page opens, change Auto Execute from false to true in the Properties dialog box for each frame. If you want all three to run when a button is pushed, right-click the button, select Hyperlink Properties, and add all three external report procedures as actions with the Target Name for each set to the appropriate frame. No need to write any JavaScript in these cases.

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
January 19, 2012, 12:21 AM
MrM
Dan,

Thanks for your reply it was a great help.