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     [solved]passing values in drilldown
Go
New
Search
Notify
Tools
Reply
  
[solved]passing values in drilldown
 Login/Join
 
Member
posted
Using the following define -

DEFINE FILE CAR
CLASS/A10 = IF COUNTRY IN('ENGLAND','FRANCE') THEN 'XXXXXX' ELSE COUNTRY;
END

When I run my fex I'm getting the following output:

CLASS RETAIL_COST COUNTRY
ITALY 51,065 ITALY
JAPAN 6,478 JAPAN
W GERMANY 64,732 W GERMANY
XXXXXX 45,319 ENGLAND
5,610 FRANCE

There will be two drilldowns... one for all countries except XXXXXX and the other drilldown will be on XXXXXX. I'm trying to get detail data for both England and France when I drilldown on XXXXXX (passing COUNTRY) but am having no luck. Hope this is enough information... Am totally going in circles at this point and would really appreciate any help - thanks!

This message has been edited. Last edited by: djackson,


Dev Studio 8.1.0.4, App Studio 8.1.5m, Reporting Server 8.1.4, InfoAssist, Active Technologies, Windows 2003 Server, Windows7
 
Posts: 20 | Location: Wheaton College | Registered: April 25, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
One way is to define a list...
CLIST/A100 = IF COUNTRY IN('ENGLAND','FRANCE') 
  THEN '''ENGLAND'',''FRANCE'''   
  ELSE '''COUNTRY''';

...include it as an argument in the drilldown call, and screen in the called fex using
WHERE COUNTRY IN ( &CLIST );
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Member
posted Hide Post
I think I'm going to hold all the class fields with their corresponding countries in a foc file, pass 'XXXXXX' to a fex referencing the foc file and then decode XXXXXX back to it's original name and go from there. thanks much for the feedback!


Dev Studio 8.1.0.4, App Studio 8.1.5m, Reporting Server 8.1.4, InfoAssist, Active Technologies, Windows 2003 Server, Windows7
 
Posts: 20 | Location: Wheaton College | Registered: April 25, 2005Reply With QuoteReport This Post
Master
posted Hide Post
You are so close... why change now?

if you have this decode

DEFINE FILE CAR
CLASS/A10 = IF COUNTRY IN('ENGLAND','FRANCE') THEN 'XXXXXX' ELSE COUNTRY;
END


You should also use it in the underlying fex. ( the one you're drilling to )

WHERE CLASS EQ &DRILL_PARAM_CLASS


Should work perfectly.

Greets,D


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 669 | Location: Veghel, The Netherlands | Registered: February 16, 2010Reply With QuoteReport This Post
Virtuoso
posted Hide Post
There are a number of fairly simple ways to accomplish what you need to do. The suggestion by j.gross is pretty straightforward. You could use a conditional drilldown to get what you need. Another failrly simply way would be to just leave the main procedure as-is (passing the value of class) and then include a Dialogue Manager command like the following in your drill-down procedure.

-SET &WHERE=IF 'XXXXXX' EQ '&CLASS' THEN 'WHERE COUNTRY EQ '|''''|'ENGLAND'|''''|' OR '|''''|'FRANCE'|''''|';' ELSE 'WHERE COUNTRY EQ '|''''| &CLASS |''''|';';

and then just put

&WHERE.EVAL on its own line as your selection criteria.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [solved]passing values in drilldown

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