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] Date in the PAST

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Date in the PAST
 Login/Join
 
Silver Member
posted
Hi Fellow Focus users! Happy Friday.

In the new 8202M Page layout, when a calendar is setup, how can I set the default date to be a date in the past? See image

I use
 WHERE [tablename] GE &STARTDATE.(|FORMAT=YYMD).From Date:.QUOTEDSTRING; 
to tell the page I need a calendar. I just don't know how to say I would like the FROM DATE to initially show a date in the past. It always shows today's date.

Any help appreciated. Thank you!

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS App Studio 8202M
Windows, All Outputs
 
Posts: 34 | Registered: May 22, 2014Report This Post
Virtuoso
posted Hide Post
Try adding a
-DEFAULTH &STARTDATE = '20180410';
to the top of you fex file with that WHERE statement in place.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Silver Member
posted Hide Post
Thanks CoolGuy but that doesn't work. Once you put the "H" it removes the calendar altogether so that at runtime the calendar is not visible.


WebFOCUS App Studio 8202M
Windows, All Outputs
 
Posts: 34 | Registered: May 22, 2014Report This Post
Virtuoso
posted Hide Post
What do you get without the H (-DEFAULT)? Also, what happens with a -SET?


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Master
posted Hide Post
It should work with a -DEFAULT, however the default date value needs to be an alpha date

  
-DEFAULT &BEG_DATE = 'April 01 2018';
-DEFAULT &END_DATE = 'April 07 2018';

-TYPE &BEG_DATE.(|FORMAT=YYMD).From Date.
-TYPE &END_DATE.(|FORMAT=YYMD).To Date.


A fex with just the code above and I get this:



Or after combining the two date inputs I get this:



Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Silver Member
posted Hide Post
Thanks Hallway! The alpha date did the trick! It works!

Just curious... what is the fex for the combined date?


WebFOCUS App Studio 8202M
Windows, All Outputs
 
Posts: 34 | Registered: May 22, 2014Report This Post
Master
posted Hide Post
No fex needed. It is done in the Page Designer. With both of the date controls selected, just right click and select combine.



Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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] Date in the PAST

Copyright © 1996-2020 Information Builders