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     [SHARING] Maintain timer to exit

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SHARING] Maintain timer to exit
 Login/Join
 
Silver Member
posted
Hello
I have attempted to use the timer that was published in a newsletter.
http://www.informationbuilders.../11-4/03_derwin.html

It is an excellent functionality.

The button comes (after a while) up but doesn't disappear when i click to get more time. Also, i don't get more time but am thrown out even if i click on the button.

Has anyone got this working and can help me please?

Regards, Mats

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


Mats Sundelin
Cybernetics Business Solutions AB
 
Posts: 31 | Location: Stockholm, sweden | Registered: January 19, 2005Report This Post
Silver Member
posted Hide Post
I did a little more testing on this after posting.
The solution is to add an empty Event Handler to the button to receive the click. That way i get a new slot.
Case OnButtonX_Click
EndCase

I also enhanced it a little by moving the button to the middle of the form when displaying (control.style.top ,bottom ,left ,right). That way it can be moved out-of-way in the MDE, not to disturb editing of the form.

My version of the script:
var sTimer=70
// Control id of the button used
var id = "ButtonX";
var control = document.getElementById(id);
control.value=sTimer;
display();

function display(){
var done = 0;
sTimer -= 1;
if( sTimer <= 0 )
done = 1;
if( sTimer <= 10 )
{
control.style.visibility = 'visible';
control.style.backgroundColor = "red";
control.style.top="130px";
control.style.bottom="480px";
control.style.left="300px";
control.style.right="700px";
control.value="Do you need more time? \n Click to continue";
}
else
control.value=sTimer;
if( !done )
{
setTimeout("display()",1000) ;
}
else
{
IWCTrigger("WINEXIT");
window.opener=self;
window.close();
}
}
Regards, Mats


Mats Sundelin
Cybernetics Business Solutions AB
 
Posts: 31 | Location: Stockholm, sweden | Registered: January 19, 2005Report This Post
Master
posted Hide Post
Hey Mats - Yeah. Sorry about that typo. I am glad that you were able to make it work!
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report 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     [SHARING] Maintain timer to exit

Copyright © 1996-2020 Information Builders