Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Clearing out Frames
 Login/Join
 
Expert
posted
I have a Dashboard page with 4 frames, opening clockwise:

IFRAME1 = Bar Graph
IFRAME2 = Pie or Bar Graph
IFRAME3 = Bar Graph
IFRAME4 = Excel

As the user clicks on a Bar riser or Pie slice, the drilldown opens in the next frame on the same page.

Scenario:

After the user has opened all 4 frames with selections, they then click on another selection in Frame 1 or 2:

My question:

If the user clicks on Frame1, I want to clear out Frames 3 and 4 as Frame 2 is populated
If the user clicks on Frame2, I want to clear out Frame 4 as Frame 3 is populated

This IS NOT an !IBI.FIL.HOLD application, it is all built in HTML Painter, with drilldowns...
Nor is directing the user to select RESET to clear out all the frames an option...

Any suggestions would be appreciated...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Couldn't you simply load an HMTL page that is an empty page into the iframes using a JS OnClick event handler? You know the names of the iframes, so you could do sumfing like this:
<select ... onClick="iframe1.location='approot/demo/empty.html';iframe2.location='approot/demo/empty.html';">


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Francis,

Sorry it took awhile to respond; thanks for your input.

I thought I would share our success as this may assist someone down the road.

My frames are:

1 ---> 2

3 ---> 4

opening in 1,2,4,3 order....

Added 2 JS functions with <SCRIPT tags:

function blankFrames() {
document.all.iframe3.src = '';
document.all.iframe4.src = '';
}
function blankFrame3() {
document.all.iframe3.src = '';
}

then, in the focexec, graph2, this cleared frames 3 & 4:

-HTMLFORM BEGIN
<HTML>
<HEAD>
</HEAD>
<BODY language=javascript onload=parent.blankFrames()>
</BODY>
</HTML>
-HTMLFORM END


then, in the focexec, graph4, this cleared frame 3:


-HTMLFORM BEGIN
<HTML>
<HEAD>
</HEAD>
<BODY language=javascript onload=parent.blankFrame3()>
</BODY>
</HTML>
-HTMLFORM END


Special THANKS to Richard Thompson of IBI, who gets ALL the credit!!!


Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders