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     want to have multiple conditions in a drill down

Read-Only Read-Only Topic
Go
Search
Notify
Tools
want to have multiple conditions in a drill down
 Login/Join
 
<levada>
posted
Hi,
I have a report and depending on 2 different fields I want to do different drill downs. So for instance if field a = 1 then I want to call report joe while if field b=2 then I want to call report frank and furthermore if the count field is 0 then I dont want to call any reports.
Somebody please email me elliot.siegel@juliusbaer.com
 
Report This Post
Gold member
posted Hide Post
Hi,

On the drill down pass two parameters a and b to the REPORT that you want to drill down on.
in REPORT
set a condition as
SET &STEP = IF a EQ I THEN REPORT1 ELSE IF b EQ 2 THEN REPORT2;
GOTO &STEP
-REPORT1
TABLE FILE YYY
...


..
END
-EXIT
-REPORT2
TABLE FILE ZZZ
...


..
END
-EXIT

Hope this helps you.
 
Posts: 76 | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
levada,

Try using the drillmenu item within the style -

TYPE=type, [subtype], DRILLMENUITEM='description'|'DrillDown n', type_of_link

As far as I know you can use this with a WHEN condition.

If you do not want multiple menu items when clicking on a link then just use the WHEN conditioning -

TABLE FILE CAR
PRINT DCOST
RCOST
BY COUNTRY
BY CAR
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=N1, WHEN=COUNTRY EQ 'FRANCE', $
TYPE=DATA, COLUMN=N1, WHEN=COUNTRY EQ 'ENGLAND', FOCEXEC=joe, $
TYPE=DATA, COLUMN=N1, WHEN=COUNTRY EQ 'JAPAN', FOCEXEC=frank, $
ENDSTYLE
END
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<WFUser>
posted
Use a WHEN condition in your stylesheet.

TYPE=DATA,COLUMN=P1,FOCEXEC=joe,WHEN=A EQ 1,$
TYPE=DATA,COLUMN=P1,FOCEXEC=frank,WHEN=B EQ 2,$

The WHEN fields jow and frank must exist in your request but you can NOPRINT them if you want. You also must make sure both conditions cannot be true. They they are, you'll probably get the second one.
 
Report This Post
Expert
posted Hide Post
i agree with WFuser. The style sheet WHEN= syntax is the way to go here.
You can have 3 entries for tht field
the two that Wfuser suggests, plus a third
for your no-drilldown option
TYPE=DATA,COLUMN=P1,WHEN=MYCOUNTFIELD EQ 0,$
and you'll get no hyperlink at all.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     want to have multiple conditions in a drill down

Copyright © 1996-2020 Information Builders