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] Range of Dates for Calendar Control

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Range of Dates for Calendar Control
 Login/Join
 
Member
posted
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
 
Posts: 27 | Registered: May 24, 2011Report This Post
Guru
posted Hide Post
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
 
Posts: 315 | Registered: April 13, 2004Report This Post
Guru
posted Hide Post
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
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 27 | Registered: May 24, 2011Report This Post
Member
posted Hide Post
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
 
Posts: 27 | Registered: May 24, 2011Report 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] Range of Dates for Calendar Control

Copyright © 1996-2020 Information Builders