Focal Point
[SOLVED] Where filter dates InfoAssist 8.2.01

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7617010196

December 31, 2018, 02:21 PM
Tomsweb
[SOLVED] Where filter dates InfoAssist 8.2.01
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
January 02, 2019, 08:20 AM
BabakNYC
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
January 02, 2019, 03:03 PM
Tomsweb
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
January 02, 2019, 03:09 PM
BabakNYC
https://webfocusinfocenter.inf...source/resp_auto.htm


WebFOCUS 8206, Unix, Windows