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     [SOLVED] HTML Composer - How to Reset Calendar Control.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] HTML Composer - How to Reset Calendar Control.
 Login/Join
 
Master
posted
I have a button control on my HTML page that resets my combobox and checkboxes with the following code:
//Begin function button2_onclick
function button2_onclick(ctrl) {
 document.getElementById('combobox1').selectedIndex=0;
 document.getElementById('checkbox1_0').checked=true;
 document.getElementById('checkbox3_0').checked=true;
 document.getElementById('checkbox4_0').checked=true;
 document.getElementById('checkbox5_0').checked=true;
 document.getElementById('checkbox6_0').checked=true;
}
//End function button2_onclick 


How can I now reset a calendar control I have on the same page?

I have 'Current/Start date' checked on the 'Properties and Settings' design form, so current date is indeed what I need to have the calendar control be reset to.

This message has been edited. Last edited by: <Kathryn Henning>,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
OK, I think I have a solution that seems to be working.

In function window_onload() I save off the calendar value:
initialdate = IbComposer_getCurrentSelection('calendar1');  

Then in the reset button function, I reset the calendar value:
//Begin function button1_onclick
function button1_onclick(ctrl) {
 document.getElementById('calendar1').value=initialdate;
}
//End function button1_onclick  
 
Posts: 822 | Registered: April 23, 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     [SOLVED] HTML Composer - How to Reset Calendar Control.

Copyright © 1996-2020 Information Builders