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     Automatic Drill-Down not working with WHERE/IF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Automatic Drill-Down not working with WHERE/IF
 Login/Join
 
<Rajiv Phougat>
posted
I am making a Report with a WHERE condition on Start Month/Year and End Month Year, also I have put the AUTOMATIC DRILLDOWN option ON. It works fine without the WHERE condition but when I apply WHERE condition DRILLDOWN doesn't work.
PLS HELP ME AS I AM NEW TO WebFOCUS!!!!

Following is the piece of code:

TABLE FILE TEST
SUM
CNT.CASEREFNUMBER AS 'CNT,CASEREFNUMBER'
BY
STATE AS 'State'
BY
REGION AS 'Region'
BY
PARISH AS 'Parish'
ACROSS
MONTH AS 'Month'

ON STATE SUBTOTAL
CASEREFNUMBER AS '*State Total: '

ON REGION SUBTOTAL AS '*Region Total:'
WHERE HDATE(INTAKERECEIVEDDT, 'MYY') GE HDATE(HINPUT(8, '&startYear.(2003,2004,2005).Start Year.' | '&startMonth.(01,02,03,04,05,06,07,08,09,10,11,12).Start Month.' | '01' , 8, 'HYYMDS'),'MYY')
AND
HDATE(INTAKERECEIVEDDT, 'MYY') LE HDATE(HINPUT(8, '&endYear.(2003,2004,2005).End Year.' | '&endMonth.(01,02,03,04,05,06,07,08,09,10,11,12).End Month.' | '01' , 8, 'HYYMDS'), 'MYY');
 
Report This Post
Expert
posted Hide Post
Hi Rajiv,<br /><br />As I heard from one of the cases, filters and OLAP do not work together. Roll Eyes <br /><br />Have you tried what Goldy suggested at the other thread that you have? https://forums.informationbuilders.com/eve/forums/a/...141078331#5141078331 <br />Is the suggestion helpful to you?<br /><br />You may also want to take a look at the following page.<br /><br />Display OLAP Dimension/Selection Values in DrillDown heading <br /> http://techsupport.informationbuilders.com/sps/91111037.html <br /><br />Hope this helps. Big Grin <br /><br />Cheers,<br /><br />Kerry

This message has been edited. Last edited by: <Mabel>,
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Platinum Member
posted Hide Post
As a guess I would make all of the &'s into
double &&'s. eg &&STARTYEAR, &&STARTMONTH, etc.

This preserves their values thru all of the reports which are needed in subsequent drill-downs.
 
Posts: 226 | Registered: June 08, 2003Report This Post
<Rajiv Phougat>
posted
Thanks a lot for both the replies, the && thing is not helping me, it gives an error (may be there is a version problem I am using 5.2.3)

Solution by Kerry should help, but I am using WHERE clause right now and not the IF Clause. If I try to use the same condition in IF clause it gives me error that the field is not recognised, I think the functions for date which I am using (viz. HDATE, HINPUT etc.) doesn't work with IF or the problem is due to amper fields. I am using the following condition in WHERE Clause:

HDATE(INTAKE_RECEIVED_DATE, 'MYY') GE HDATE(HINPUT(8, '&startYear.(2003,2004,2005).Start Year.' | '&startMonth.(01,02,03,04,05,06,07,08,09,10,11,12).Start Month.' | '01' , 8, 'HYYMDS'),'MYY')
AND
HDATE(INTAKE_RECEIVED_DATE, 'MYY') LE HDATE(HINPUT(8, '&endYear.(2003,2004,2005).End Year.' | '&endMonth.(01,02,03,04,05,06,07,08,09,10,11,12).End Month.' | '29' , 8, 'HYYMDS'), 'MYY')


How should I use the same in IF Clause. Or otherwise can I use the same .js file with WHERE clause also (which I think is not possible).
 
Report This Post
Virtuoso
posted Hide Post
To use IF you have to make
the screening condition a defined variable which your test compares to a constant:
DEFINE FILE xxx
Take/i1=
HDATE(INTAKE_RECEIVED_DATE, 'MYY') 
GE HDATE(HINPUT(8, '&startYear.(2003,2004,2005).Start 
Year.' | 
'&startMonth.(01,02,03,04,05,06,07,
08,09,10,11,12).Start Month.' | '01' , 8, 'HYYMDS'),'MYY')
ANDHDATE(INTAKE_RECEIVED_DATE, 'MYY') 
LE HDATE(HINPUT(8, '&endYear.(2003,2004,2005).End Year.' | '&endMonth.(01,02,03,04,05,06,07,
08,09,10,11,12).End Month.' | '29' , 8, 'HYYMDS'), 'MYY')
END TABLE FILE xxx
IF Take IS TRUE<br />END

This message has been edited. Last edited by: <Mabel>,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by GeraldCohen:
[qb] As a guess I would make all of the &'s into
double &&'s. eg &&STARTYEAR, &&STARTMONTH, etc.

This preserves their values thru all of the reports which are needed in subsequent drill-downs. [/qb]
Global amper variables endure for the "session" (i.e., until disconnect), but then they are cleared so the next connect starts with a clean slate; besides which there is no guarantee that the drilldown will connect to the same agent.

For the drill-down report to inherit a parameter, you have to pass it to the drilldown with its content as the passed value:
( ... MyParm='&MyParm' ...)
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     Automatic Drill-Down not working with WHERE/IF

Copyright © 1996-2020 Information Builders