Focal Point
Display current dates in lanuch page calendar

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

December 07, 2006, 04:31 PM
Tomsweb
Display current dates in lanuch page calendar
Has anyone figured out how to display current dates in lanuch page calendar?

I mean in the text box where the user can manually entere a date

Any suggestions? Razzer


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
December 08, 2006, 02:54 AM
Tony A
Hi Tom,

I use this technique every time to pre populate a date control. I add an additional attribute called "dateoffset" which holds an integer value that is used to calculate the date to display in the control.

Check out this post for the JavaScript I use.

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 
December 08, 2006, 10:58 AM
Tomsweb
Thanks Tony!


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
December 11, 2006, 03:43 AM
Tony A
You are welcome Tom



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 
December 13, 2006, 04:52 PM
Tomsweb
I have reviewed the launch page fex (maplaunch.htm), and I cannot determine where I would insert the code Tony suggested.

Any Suggestions? Confused

Code cptioned below:



<script id=OnloadHandler>
function OnLoad() {

< !--startibilines-->
UpdateData();

< !--endibilines-->
}





<script id=loadcalendar type=text/javascript>
if(ibigblInitInfo.testOptions(dyncalendar)){
setDateRange();
setupDocCalendars();
}




Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
December 14, 2006, 03:49 AM
Tony A
Hi Tom,

I add the code towards the end of the HTML and then add a call to the function within the OnLoad() function after the < !--endibilines-->.

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