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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 79 | Location: New York | Registered: February 04, 2010Report 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
 
Report 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, 2005Report 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: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [CLOSED] Multiple Values in a field - drill on each value

Copyright © 1996-2020 Information Builders