[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.
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