Focal Point
[CLOSED] Javascript Reset Calendar Issue

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5497003426

September 20, 2012, 11:47 AM
Enigma006
[CLOSED] Javascript Reset Calendar Issue
Hi

Reset button does not clear the calendar value.

So, I wrote a function with the following code but somehow does not seem to work.

document.form1.DT1.value = ' ';
document.form1.DT2.value = ' ';
document.form1.getElementById('D3').value = ' ';
document.getElementById('D4').value = ' ';


I tried above ways.
Please let me know if something is wrong.

When Reset button is clicked, Textbox on the HTML page gets cleared but same old (previous entry) date value gets passed to the fex.

Thank you

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


8.1.05
HTML,PDF,EXL2K, Active, All
September 20, 2012, 02:08 PM
Francis Mariani
I just tested a Calendar Control and the Reset button works (but I'm in v7.7.03, so maybe it wasn't working in v7.7.02...)


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
September 20, 2012, 04:04 PM
Enigma006
Ok. it could have been fixed in that release.
any way to fix this now?


8.1.05
HTML,PDF,EXL2K, Active, All
September 24, 2012, 08:41 AM
MAdams1
If your calendar controls are chained try this.

Function: IbComposer_ResetDownChainControls
How to: Reset Chain Controls


The IbComposer_ResetDownChainControls function resets the controls down the chain from the current control to have correct corresponding values.

Syntax: How to Reset Chain Controls
   
IbComposer_ResetDownChainControls('ctrl'); 

where:

ctrl
Alphanumeric

Is the unique identifier of the first control.

example;
 IbComposer_ResetDownChainControls('calendar1'); 



WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML