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.
Has anyone tried automatically refreshing content pages in the Dashboard? We would like to have the Dashboard automatically refresh (without having to press the Refresh button) so that Operations could use it to monitor processes. We would like the refresh to be every minute or so. Has anyone tried this? If yes, would you be willing to share how you did it? We are on WF7.1.4 on AIX 5.3. Thanks.
WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
Posts: 88 | Location: Seattle | Registered: March 29, 2007
The link you sent is helpful. Now, does anyone have an idea what file would need to be modified with this code? Would the application server need to be recycled with a change?
WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
Posts: 88 | Location: Seattle | Registered: March 29, 2007
I am assuming you're running a WebFOCUS report that is displayed in a tab in a dashboard window.
I think you need to use the JavaScript refresh method as outlined.
Something like this WORKING example:
-SET &ECHO=ALL;
-*-- Determine Current Time Seconds to randomly select a Body Length-----
-SET &CTIME_SS = EDIT(HHMMSS('A8'),'$$$$$$99');
-SET &CAR_LENGTH =
- IF &CTIME_SS FROM '00' TO '02' THEN '163' ELSE
- IF &CTIME_SS FROM '03' TO '04' THEN '165' ELSE
- IF &CTIME_SS FROM '05' TO '06' THEN '170' ELSE
- IF &CTIME_SS FROM '07' TO '08' THEN '176' ELSE
- IF &CTIME_SS FROM '09' TO '10' THEN '177' ELSE
- IF &CTIME_SS FROM '11' TO '12' THEN '182' ELSE
- IF &CTIME_SS FROM '13' TO '14' THEN '187' ELSE
- IF &CTIME_SS FROM '15' TO '16' THEN '188' ELSE
- IF &CTIME_SS FROM '17' TO '18' THEN '190' ELSE
- IF &CTIME_SS FROM '19' TO '20' THEN '163' ELSE
- IF &CTIME_SS FROM '21' TO '22' THEN '165' ELSE
- IF &CTIME_SS FROM '23' TO '24' THEN '195' ELSE
- IF &CTIME_SS FROM '25' TO '26' THEN '176' ELSE
- IF &CTIME_SS FROM '27' TO '28' THEN '177' ELSE
- IF &CTIME_SS FROM '29' TO '30' THEN '182' ELSE
- IF &CTIME_SS FROM '31' TO '32' THEN '187' ELSE
- IF &CTIME_SS FROM '33' TO '34' THEN '188' ELSE
- IF &CTIME_SS FROM '35' TO '36' THEN '190' ELSE
- IF &CTIME_SS FROM '37' TO '38' THEN '163' ELSE
- IF &CTIME_SS FROM '39' TO '40' THEN '165' ELSE
- IF &CTIME_SS FROM '41' TO '42' THEN '170' ELSE
- IF &CTIME_SS FROM '43' TO '44' THEN '176' ELSE
- IF &CTIME_SS FROM '45' TO '46' THEN '177' ELSE
- IF &CTIME_SS FROM '47' TO '48' THEN '182' ELSE
- IF &CTIME_SS FROM '49' TO '50' THEN '187' ELSE
- IF &CTIME_SS FROM '51' TO '52' THEN '188' ELSE
- IF &CTIME_SS FROM '53' TO '54' THEN '190' ELSE
- IF &CTIME_SS FROM '55' TO '56' THEN '163' ELSE
- IF &CTIME_SS FROM '57' TO '58' THEN '165' ELSE
- '195';
TABLE FILE CAR
PRINT
SEG.LENGTH
BY LENGTH NOPRINT
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
WHERE LENGTH GE &CAR_LENGTH
HEADING
"&CAR_LENGTH"
ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title>Refresh JavaScript Example</title>
<script language="JavaScript">
var sURL = unescape(window.location.pathname);
function doLoad()
{
setTimeout( "refresh()", 2*1000 );
}
</script>
<script language="JavaScript1.1">
<!--
function refresh()
{
// This version does NOT cause an entry in the browser's
// page view history. Most browsers will always retrieve
// the document from the web-server whether it is already
// in the browsers page-cache or not.
//
window.location.replace( sURL );
}
//-->
</script>
<script language="JavaScript1.2">
<!--
function refresh()
{
// This version of the refresh function will be invoked
// for browsers that support JavaScript version 1.2
//
// The argument to the location.reload function determines
// if the browser should retrieve the document from the
// web-server. In our example all we need to do is cause
// the JavaScript block in the document body to be
// re-evaluated. If we needed to pull the document from
// the web-server again (such as where the document contents
// change dynamically) we would pass the argument as 'true'.
//
window.location.reload( false );
}
//-->
</script>
</head>
<!--
Use the "onload" event to start the refresh process.
-->
<body onload="doLoad()">
!IBI.FIL.H001;
</body>
</html>
-HTMLFORM END
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