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 email@example.com
On the drill down pass two parameters a and b to the REPORT that you want to drill down on.
set a condition as
SET &STEP = IF a EQ I THEN REPORT1 ELSE IF b EQ 2 THEN REPORT2;
TABLE FILE YYY
TABLE FILE ZZZ
Hope this helps you.
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
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, $
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.
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.
|Powered by Social Strata|