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] Setting Static Default Dates in Page Designer 8.2

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Setting Static Default Dates in Page Designer 8.2
 Login/Join
 
Gold member
posted
Hi all,

I'm new to WebFOCUS 82 and looking to SET static dates for the date controls in the page designer. It's defaulting to the current date, but my boss wants to default the start date to Jan 1 and the end date to Dec 31. Is this possible?

Thank you in advance!

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 88 | Registered: December 06, 2016Report This Post
Virtuoso
posted Hide Post
zcbillions

You can use the reporting server profile (edasprof.prf) to set global variables that can be used by any program. Here is some code to use..


-SET &&CYEAR=EDIT(&DATEYYMD,'9999');
-SET &&FIRST_DAY= &&CYEAR | '0101';
-SET &&LAST_DAY = &&CYEAR | '1231';


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
Hi Chuck,

Thank you for your response. So I tried setting a default value for a Calendar control in 8203 in the .fex. It's showing the default value when I right click on the drop down but it's still just displaying the current date.

I've attached a screenshot of what I'm referring to.



WebFOCUS 8
Windows, All Outputs
 
Posts: 88 | Registered: December 06, 2016Report This Post
Gold member
posted Hide Post
It looks like the image above is a broken link? If it is, right click on it to view it in a different tab. I uploaded it using IMGUR.

Thanks!


WebFOCUS 8
Windows, All Outputs
 
Posts: 88 | Registered: December 06, 2016Report This Post
Virtuoso
posted Hide Post
zcbillions

So I set the global variables in the server profile and then created this fex and use it to populate the calendar control..


DEFINE FILE WF_RETAIL_TIME
FIRST_DAY/YYMD=&&FIRST_DAY;
LAST_DAY/YYMD=&&LAST_DAY;
END
TABLE FILE WF_RETAIL_TIME
BY FIRST_DAY
BY LAST_DAY
BY WF_RETAIL_TIME.WF_RETAIL_TIME.TIME_DATE
WHERE RECORDLIMIT EQ 1;
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT XML
END

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


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
So I figured it out Chuck.

It is actually filtering the dates correctly on the page, but it's not displaying the dates correctly in the Calendar control dropdown. That's pretty confusing to the user.

Can you recreate this issue or is it displaying the correct dates correctly in your page?

Thanks!


WebFOCUS 8
Windows, All Outputs
 
Posts: 88 | Registered: December 06, 2016Report This Post
Virtuoso
posted Hide Post
ZCbillions

It is displaying them properly. Insure you are using the explict (requests panel) and the custom fex to populate the calendar control.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report 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] Setting Static Default Dates in Page Designer 8.2

Copyright © 1996-2020 Information Builders