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] Split-up Month/Year Closed Date filters

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Split-up Month/Year Closed Date filters
 Login/Join
 
Gold member
posted
Hi all,

I'm in need of splitting the month and year in the date and have a between search clause, such as between one month and year and between another month and year. So instead of having it like I do now with all the values between 2000/01 - 2018/12 for the user to pick through in one pick list, we want to have 2000-2018 in one picklist and the a Jan-Dec for the month pick list. It will make it more user friendly. This is being done in a HTML document by the way.

So I have the date decoded. I have it in just 'year' format, 'year/month', and 'year-month-day'.

Would I go off the closed date 'year' field and create a month picklist? Not sure how the logic would be with this? I can't conceptually figure out how this would work..

Please let me know if I need to clarify any..

Thanks in advance!

This message has been edited. Last edited by: Tamra,


WebFOCUS 8
Windows, All Outputs
 
Posts: 88 | Registered: December 06, 2016Report This Post
Guru
posted Hide Post
Best to generate a normal date of whatever the user has selected:

Something like
WHERE DATE GE &YEARFROM/&MONTHFROM/01 AND DATE LT &YEARTO/&MONTHTO/01

and use DT() if DATE is a datetime


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Guru
posted Hide Post
Have you found a solution to your date question?
One member has replied, does this help you out?

You can also search on Focal Point - such as Date FROM TO, Date Range etc....

There are a lot of examples of using DATES on the forum.

Date comparison

Current Month (resolved)

Date range problem...

Thank you for participating in the Focal Point Forum!
Tamra Colangelo
Focal Point Moderator
Information Builders


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Gold member
posted Hide Post
Frans, what does the /01 after the month mean?


WebFOCUS 8
Windows, All Outputs
 
Posts: 88 | Registered: December 06, 2016Report This Post
Virtuoso
posted Hide Post
Add day 01 to Year and Month to create a valid date such as CCYY/MM/DD where DD = 01.

-SET &YRFR = 1996;
-SET &MTHFR = 12;
-SET &YRTO = 1997;
-SET &MTHTO = 10;

DEFINE FILE GGSALES
DTE /YYMD = DATE;
END
TABLE FILE GGSALES
SUM UNITS
BY DTE
WHERE DTE GE DT(&YRFR/&MTHFR/01) AND DTE LE DT(&YRTO/&MTHTO/01);
END

This message has been edited. Last edited by: MartinY,


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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] Split-up Month/Year Closed Date filters

Copyright © 1996-2020 Information Builders