Focal Point
[CLOSED] Filter in Active Report not working correctly

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

June 29, 2009, 11:45 AM
Inderjit
[CLOSED] Filter in Active Report not working correctly
Hi I have a report that I am outputting in Active report. When I try to filter on a date column, in the report. If I use a =(equal) then the result ends up being =>(equal or greater than). Why is this?

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


WebFOCUS 7.6.8
Windows
HTML
June 29, 2009, 04:27 PM
FortuneCookie
It works for me with:

TABLE FILE GGSALES
PRINT DATE
ON TABLE PCHOLD FORMAT AHTML
END

I guess what kind of DATE field do you have? How's it defined?
June 30, 2009, 11:32 AM
Microfich
Depends on the DBMS. If you're using SQL Server, dates are formatted differently than FOCUS, DB2 or Oracle, for instance.

Note, this is also an issue when creating an output FORMAT of an EXCEL pivot table, which behaves similarly to an AHTML active report packet.


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
July 01, 2009, 11:03 AM
Inderjit
Microfich,

I am using SQL Server, have you had this happen to you and if so what did you do to fix the problem.


WebFOCUS 7.6.8
Windows
HTML
July 02, 2009, 12:00 AM
susannah
the solution would seem to be:
create an extract file,
redefine the date to a focus smart date,
create the final report as an active report with filters.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 06, 2009, 08:49 AM
Microfich
Here's the one-liner I used to correct the problem with SQL Server dates:

  

UPDATE_DATE/A20 = HCNVRT(UPDATE_DATE, '(HYYMDS)', 20, 'A20');




WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981