Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Split-up Month/Year Closed Date filters
Go
New
Search
Notify
Tools
Reply
  
[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, 2016Reply With QuoteReport 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: 452 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport 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, 2009Reply With QuoteReport 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, 2016Reply With QuoteReport 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: 2394 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.