Focal Point
[SOLVED] Range of Dates for Calendar Control

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

July 28, 2013, 04:30 PM
ECosain
[SOLVED] Range of Dates for Calendar Control
Hello,

I just spent 4 hours trying to set a date range for a calendar control in HTML composer without any luck.

The documentation says to create an XML format that shows 2 dates on two rows in mm/dd/yyyy format.

I did that but my control ended up only showing the current year month.

Has anyone been successful in using the dynamic date range functionality for the calendar control in HTML Composer?

Your help is greatly appreciated.

Thank you,

Elizabeth Cosain

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


WebFOCUS 7.7.3
DevStudio, MRE
July 29, 2013, 07:41 AM
David Glick
There is an example of how to do a dynamic range in the documentation.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
July 29, 2013, 08:17 AM
J
David is correct. There is a nice example to follow in the documentation. However, it is important to note that if you do a dynamic date range, the calendar icon disappears in 7.7.03 when using browsers other than IE. I don't know about hot fixes or future releases. In many cases, I can use a static range starting the range at the spot I want and then the users know not to go past the current date because it wouldn't make sense, but that is not always the ideal case depending on the situation.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
July 29, 2013, 09:59 AM
Francis Mariani
Here is an example of the fex that creates the XML file containing two rows:

SET ASNAMES=ON
SET HOLDLIST=PRINTONLY

TABLE FILE MIN_MAX_DATES
SUM
MIN.MIN_DTE AS DATE1
ON TABLE HOLD AS HDATEMIN
END
-RUN

TABLE FILE MIN_MAX_DATES
SUM
MAX.MAX_DTE AS DATE1
ON TABLE HOLD AS HDATEMAX
END
-RUN

TABLE FILE HDATEMIN
PRINT
DATE1
ON TABLE PCHOLD FORMAT XML
MORE
FILE HDATEMAX
END
-RUN



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
July 29, 2013, 05:22 PM
ECosain
Hello,

I am retrieving 2 rows in an XML format (e.g., 01/15/2010 and 07/13/2013) but I am getting an error ('undefined' is null or not an object). I am returning a char value from the database so a may be formatting issue?

Thank you,

Elizabeth


WebFOCUS 7.7.3
DevStudio, MRE
July 29, 2013, 09:08 PM
ECosain
Hello,

This was a date fomatting issue. I used the following in a define to reformat the date being passed in from Oracle and it worked perfectly.

STARTDATE2/YYMD=HDATE(STARTDATE,'YYMD');

Thanks for your help.

Elizabeth


WebFOCUS 7.7.3
DevStudio, MRE