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.
TABLE FILE IBISAMP/CAR
SUM
CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
HEADING
"CAR REFRESH TEST"
"AT &TOD"
ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<script language="JavaScript">
function doReload()
{
setTimeout( "location.reload(true);", 2*1000 );
}
</script>
<body onload="doReload()">
!IBI.FIL.H001;
</body>
-HTMLFORM END
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
Just to explain to you why your carefully crafted code will not work the way that you think it should.
Once your report is created and stored in the temporary file H001.FTM, it is pulled into the HTML output and delivered to the end-user's browser. The URL at this point will be something like - "http:/yourserverort/ibi_apps/WFServlet?" with nothing else.
The JavaScript will then set a timer to reload the location every 2 seconds and it will do just that, try and load the URL.
Your problem is that this URL will do nothing because is not linked to anything remotely useful in furnishing your report back to the screen. Just run your report without the HOLD and -HTMLFORM and then hit F5 to refresh the screen - this is what your JavaScript is essentially doing.
The solution that you need is to run a URL that provides WebFOCUS with everything that it requires to rerun your report, and David has given you a solution - by introducing a FORM to your output which contains the necessary controls to form the URL required.
If you do not comprehend how the HTML form elements achieve this then perhaps it would be a good idea to gain some insight by looking at some tutorial sites such as W3Schools where you can get a reasonable understanding of HTML, CSS, JavaScript etc.
Good luck!!
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004