Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Multiple Values in a field - drill on each value
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Multiple Values in a field - drill on each value
 Login/Join
 
Gold member
posted
Hi All,

I have a request where I will print multiple values for a single field in a table. How can I achieve drill capability on each different value?

I appreciate your help.

This message has been edited. Last edited by: <Kathryn Henning>,


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 80 | Location: New York | Registered: February 04, 2010Reply With QuoteReport This Post
<Kathryn Henning>
posted
Hi nsk110483,

Is this what you're looking to do?

PARENT.FEX:
  
TABLE FILE CAR
PRINT COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, FOCEXEC=DRILL(COUNTRY=COUNTRY),$
ENDSTYLE
END


DRILL.FEX:
 
TABLE FILE CAR
HEADING
"DRILL DOWN REPORT"
PRINT COUNTRY
WHERE COUNTRY EQ '&COUNTRY';
END


Cheers!

Kathryn
 
Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I have done this by creating a define for a column which was two HTML Anchor statement with the web call. It took a while to get the syntx right. hint code in in simple HTML them wrap the WebFocus code around the string.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
nsk,

Do you mean that you want to do a different drill for each value?
Example with the CAR file, printing COUNTRY, you want to drill to:
FEX1 for ENGLAND
FEX2 for FRANCE
FEX3 for ITALY
and so on?

"Silence is consent."
I would do this as follows:
  
TABLE FILE CAR
PRINT COUNTRY
COMPUTE DD/A8=DECODE COUNTRY(
ENGLAND FEX1
FRANCE  FEX2
ITALY   FEX3
JAPAN   FEX4
ELSE    FEX0); NOPRINT
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, FOCEXEC=DRILL(FEX=DD), $
ENDSTYLE
END

The the called procedure:
  
-* Drill
EX &FEX

Add parameters if necessary.

This message has been edited. Last edited by: Danny-SRL,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1932 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Multiple Values in a field - drill on each value

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.