Focal Point
[CASE-OPENED] Drilldown to target iframe in WebFOCUS v8.0.08 opens a new tab

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

August 30, 2014, 11:01 AM
Jenny N.
[CASE-OPENED] Drilldown to target iframe in WebFOCUS v8.0.08 opens a new tab
I have an html page with 3 iframes--iframe1, iframe2 and iframe3. The focexec in iframe1 one has a drilldown with target=iframe2. The focexec in iframe2 has a drilldown with target=iframe3.

Despite the target= commands in the drilldowns, they still open in a new browser tab when executed. I have a HT case open (12273533) and using parent.iframe in the target= command was suggested. I tried this but it did not work.

Has anyone experienced this behavior in webFOCUS v8.0.0.8?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS v8.2.04M
WebFOCUS v8.2.01M
Windows and AIX
iWay SM v5.5SP2 on AIX
August 31, 2014, 10:23 PM
StuBouyer
Jenny,

When you created the iframes did you just change the name of the iframe or both the name and ID?

HTML Composer usually creates ifrmaes with the name and ID set to "reportX" - where X is a number.

The TARGET of a drilldown is looking for the ID not the name - I've been bitten by this in the past.

Either change the ID (Unique Identifier) or change your TARGET to use the ID. Then it should hopefully work.

You shouldn't need to use "parent"

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
September 01, 2014, 09:52 AM
Jenny N.
The name of the frame and the Unique Id are the same. So for iframe1, the name and unique ID is iframe1; same thing for iframe2 and iframe3.


WebFOCUS v8.2.04M
WebFOCUS v8.2.01M
Windows and AIX
iWay SM v5.5SP2 on AIX
September 01, 2014, 09:15 PM
StuBouyer
Jenny,

Can you try this example based on the CAR file? It assumes that the files are all in baseapp.

HTML Page
<!DOCTYPE html>
<HTML><HEAD>
<META content=IE=Edge http-equiv=X-UA-Compatible>
<META name=mycharsetmeta content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META name=Generation content="Created in release 8008, Generation 4">
<META name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><script type="text/javascript">
//confidential_id=IBI_OptionsScript
var szHtmlAlias="/as8/ibi_apps/ibi_html";var is_mobile="false";var szRunTimeHtmlAlias="runTimeHtmlAlias";var cgipath="cgipath";var ib_composer="ib_composer";var map="ib_composer_map";var grid="ib_composer_grid";var ibiOptions = new Array(cgipath,ib_composer);var nlsScript="/javaassist/nls.js";var glbScript="/javaassist/ibi/html/js/ibigbl.js";var replacePart="<replace>";
var scriptTemplate='<script src="'+replacePart+'" type="text/javascript"><\/script>';if(typeof(szRunTimeHtmlAlias) === 'string' && szRunTimeHtmlAlias.indexOf('/') == 0)szHtmlAlias=szRunTimeHtmlAlias;document.write(scriptTemplate.replace(replacePart, szHtmlAlias + nlsScript));document.write(scriptTemplate.replace(replacePart, szHtmlAlias + glbScript));</script><script type="text/javascript">
//confidential_id=IBI_ibigblloadCss
if(typeof ibigblloadCss === 'function'){ibigblloadCss(null);addIntlTranslatedJS("composertrans.js");}else {alert("JavaScript alias '/as8/ibi_apps/ibi_html'  is not valid.");window.location("about:blank");}</script><TITLE>HtmlPage</TITLE>
<STYLE></STYLE>
 
<SCRIPT type=text/javascript>
//confidential_id=clientEventHandlersJS
 
 
//Begin function window_onload
function window_onload() {
 
 
UpdateData();
 
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
</SCRIPT>
<!--//confidential_id=focus_xmlelement
<rootxmlnode focoption="_FOC_NULL"><html_elements><html_body use_appl_css="no" maptype="0" autofitchildren="no" mobiledocument="no" edaconnectionrequired="true" ibiapp_app="baseapp" ibic_server="EDASERVE" isdataserversarea="1"><html_event eventname="load" eventhandlername="window_onload"/></html_body><html_element bindcontrolid="iframe1" elementtype="2" myviewonautofit="dontyouever" containerdisplayas="child" controltype="7"><link linktype="default"><condition default="1" name="Default" whattodowithcontrol="4"><data_info datatype="0"></data_info></condition></link></html_element><html_element bindcontrolid="iframe2" elementtype="2" myviewonautofit="dontyouever" containerdisplayas="child" controltype="7"><link linktype="default"><condition default="1" name="Default" whattodowithcontrol="4"><data_info datatype="0"></data_info></condition></link></html_element><html_element rtFileName="cgipathsub/ibi_apps/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/default_theme.css" type="cssfile"/><html_element rtFileName="cgipathsub/ibi_apps/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/ibi.css" bindcontrolid="IBI_THEME_CSS" desc="Information Builders" type="cssfile"/></html_elements><variables></variables><input_controls></input_controls><requests><request requestid="iframe1" sourcetype="typeFex" ibif_ex="car1.fex" ibiapp_app="baseapp" activeType="-1" activereport="0" compoundreport="0"/></requests><other_bound_objects></other_bound_objects><tasks><task id="load" trigger="load"><taskitem id="iframe1" sourcetype="typeFex" targettype="iframe" targetname="iframe1"/></task></tasks><animations></animations></rootxmlnode>
--><script type="text/javascript">
//confidential_id=updateHeadElements
if(typeof updateHeadElements === 'function'){updateHeadElements();}</script></HEAD>
<BODY class=IBI_PageBg><IFRAME style="Z-INDEX: 1; POSITION: absolute; WIDTH: 340px; HEIGHT: 320px; TOP: 50px; LEFT: 20px" id=iframe1 class="IBI_Report-iFrame IBI_rounded_m" title=car1.fex name="iframe1"></IFRAME><IFRAME style="Z-INDEX: 2; POSITION: absolute; WIDTH: 342px; HEIGHT: 322px; TOP: 50px; LEFT: 390px" id=iframe2 class="IBI_Report-iFrame IBI_rounded_m" name="iframe2"></IFRAME></BODY><script type="text/javascript">
//confidential_id=IBI_loader
if(typeof doBeforeLoad === 'function'){doBeforeLoad();}function AdjustChildrenPosition(){
}
</script></HTML>
<!-- cc yptf --> 


CAR1.FEX
TABLE FILE CAR
SUM
     AVE.CAR.BODY.SEATS AS 'AVE,CAR.BODY.SEATS'
BY  LOWEST CAR.ORIGIN.COUNTRY
BY  LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt.sty,
$
TYPE=DATA,
     COLUMN=N1,
     DRILLMENUITEM='DrillDown 1',
          FOCEXEC=car2.fex( \
     COUNTRY=N1 \
     ),
          TARGET='iframe2',
$
ENDSTYLE
END  


CAR2.FEX
TABLE FILE CAR
PRINT
     CAR.BODY.SEATS
BY  LOWEST CAR.ORIGIN.COUNTRY NOPRINT
BY  LOWEST CAR.COMP.CAR
BY  LOWEST CAR.CARREC.MODEL
WHERE CAR.ORIGIN.COUNTRY EQ '&COUNTRY.COUNTRY:.';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt.sty,
$
ENDSTYLE
END  


Regards

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
September 05, 2014, 09:44 PM
Jenny N.
Stu,

I apologize for the delayed response. Unfortunately the HTML you provided does not run for me. I have a case open with IBI Techsupport. While working with the consultant via remote session, we got it going to the frame. I am not sure what I did wrong...maybe the order of how I did things...not sure.

Thank you for your response. If there is a definitive solution, I will post here.


WebFOCUS v8.2.04M
WebFOCUS v8.2.01M
Windows and AIX
iWay SM v5.5SP2 on AIX