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] Where filter dates InfoAssist 8.2.01
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Where filter dates InfoAssist 8.2.01
 Login/Join
 
Master
posted
I am developing a report in InfoAssist 8.2.01.

I have a date field in YYMD format. I want to use it in a Where filter for a report, so I
created a filtering condition, setting the prompt as a dynamic parameter, and test it.

When I run it the code I get a drop down of dates like:

01/09/2011
01/16/2011
01/26/2013
01/28/2014
01/30/2015
02/01/2012
02/18/2012
02/22/2013
03/11/2014


I was expecting the "normal" sort in the drop down

01/09/2011
01/16/2011
02/01/2012
02/18/2012
01/26/2013
02/22/2013
01/28/2014
03/11/2014
01/30/2015

I am developing a report in InfoAssist 8.2.01.

I have a date field in YYMD format. I want to use it in a Where filter for a report,
so I created a filtering condition, setting the prompt as a dynamic parameter, and test it.

When I run it the code I get a drop down of dates like:

01/09/2011
01/16/2011
01/26/2013
01/28/2014
01/30/2015
02/01/2012
02/18/2012
02/22/2013
03/11/2014


I was expecting the "normal" sort in the drop down

01/09/2011
01/16/2011
02/01/2012
02/18/2012
01/26/2013
02/22/2013
01/28/2014
03/11/2014
01/30/2015


Like many WF developers, I feel very restricted by the "limits" of
developing reports in InfoAssist. Can anyone suggest how I can get these
dates to display sorted by year in the filter ?

Thank you.
Like many WF developers, I feel very restricted by the "limits" of
developing reports in InfoAssist. Can anyone suggest how I can get these
dates to display sorted by year in the filter ?

Thank you.

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 536 | Location: Baltimore, MD | Registered: July 06, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I just tested this and the Autoprompt for the YYMD field shows a drop down of YYMD (e.g. 2011/12/20) not MDYY. Could you please show us what InfoAssist code generated looks like for the WHERE test? My WHERE test looks like this:
  
WHERE WF_RETAIL.WF_RETAIL_TIME_SALES.TIME_DATE_DAY_COMPONENT EQ &TIME_DATE_DAY_COMPONENT.(FIND RETAIL_SAMPLES/WF_RETAIL.WF_RETAIL_TIME_SALES.TIME_DATE_DAY_COMPONENT IN RETAIL_SAMPLES/WF_RETAIL |FORMAT=YYMD,SORT=ASCENDING,REQUIRED=TRUE).Day:.QUOTEDSTRING;


Note the FORMAT=YYMD in the WHERE test. I'm wondering what yours generates.


WebFOCUS 8206, Unix, Windows
 
Posts: 1659 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Master
posted Hide Post
I had to create an expression to solve this problem. As you know there is NO documentation on how to do this so you have to play around and enjoy the fickle fate of FOCUS.


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 536 | Location: Baltimore, MD | Registered: July 06, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
 
Posts: 1659 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Where filter dates InfoAssist 8.2.01

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.