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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Resetting an FEX driven drop down

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Resetting an FEX driven drop down
 Login/Join
 
Member
posted
I have several drop downs for various reports on front pages that are driven by a separate FEX. The problem is when users make their selection, view the report, leave to another page and then come back to the front page, the previous data is still selected.

Is there anyway to make these automatically reset to the default or should I tell the user to just put up with it?

This message has been edited. Last edited by: silver179,


- Stephanie Pierce
WF 7.1.4
Win2K
 
Posts: 15 | Location: Texas | Registered: July 19, 2005Report This Post
Expert
posted Hide Post
Since the report opens in a new window, you could add the following to the <body tag of the html page that launches the report:

<body ... onBlur="document.forms[0].reset();">

This will do what you require, but it will also be annoying because if the user switches to anothr window, I believe the same onBlur event will occur.

OR

You could add this to the window that displays the report (that is, if you have the report within an -HTMLFORM BEGIN and END): <body ... onUnload="self.opener.document.forms[0].reset();">

The problem with this method is that you'll get a JavaScript error if the original window was closed before the report window, so you may have to do this instead:

<body ... onUnload="if (!self.opener || self.opener.closed) {} else {self.opener.document.forms[0].reset();}">

This means: If the opening window does not exist or the opening window has been closed do nothing, else rest the form on the opening window before closing the current window.

I hope this helps...


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Resetting an FEX driven drop down

Copyright © 1996-2020 Information Builders