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     [HOW-TO] Multi-drill-down to different Targets

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[HOW-TO] Multi-drill-down to different Targets
 Login/Join
 
Expert
posted
Here's one way to get multi-drill-downs to run in different target windows.

The idea is to use a JAVASCRIPT call in the multi-drill-down Style-sheet code that builds the fex call instead of making a FOCEXEC call .

The JavaScript variable focexurl is generated automatically by WebFOCUS.

In the example below, I am passing the target name to the drill-down fex only to put it in the report HEADING for demo purposes - it is not necessary.

Fex: multidrill3.fex

-SET &ECHO=ALL;

TABLE FILE CAR
PRINT SALES
BY COUNTRY
BY MODEL
HEADING
"MULTIDRILL3"
ON TABLE SET ONLINE-FMT HTMTABLE
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='VERDANA', SIZE=8, $
TYPE=TITLE, STYLE=BOLD, $
TYPE=DATA, COLUMN=COUNTRY,
DRILLMENUITEM='Drilldown 1',
JAVASCRIPT=RunReportDD('MULTIDRILL3DD1' 'TARGET1' COUNTRY),
DRILLMENUITEM='Drilldown 2',
JAVASCRIPT=RunReportDD('MULTIDRILL3DD2' 'TARGET2' COUNTRY),
$
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
<SCRIPT language='javascript'>
function RunReportDD(vFex, vTarget, vCountry)
{
vReportURL = focexurl + 'IBIF_ex=' + vFex + '&|COUNTRY=' + vCountry + '&|TARGET=' + vTarget;

// Construct the Report window's features
vFeatures =
"channelmode=no, directories=no, fullscreen=no, " +
"location=yes, menubar=yes, resizable=yes, scrollbars=yes, " +
"status=yes, titlebar=yes, toolbar=yes, "
"left=0, top=0, width=" + screen.availWidth + ", height=" + screen.availHeight;

vTarget = window.open(vReportURL, vTarget, vFeatures);
vTarget.focus();
}
</SCRIPT>
-HTMLFORM END

Fex: multidrill3dd1 and multidrill3dd2:

-SET &ECHO=ALL;

TABLE FILE CAR
PRINT SALES
BY COUNTRY
BY MODEL
WHERE COUNTRY EQ '&COUNTRY'
HEADING
"MULTIDRILL3DD1 / &TARGET"
ON TABLE SET ONLINE-FMT HTMTABLE
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='VERDANA', SIZE=8, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END
-RUN

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<Tim Howard_ABCBS>
posted
Great job. Thanks for sharing, that could be very useful. I'm finding being able to call javascript functions from a drilldown to be a very powerful tool. There's lots of cool stuff that can be done, such as you've shown.
 
Report This Post
Gold member
posted Hide Post
I was looking for this type of works.

Well done.

Thanks for sharing.


WebFOCUS 7.6.1
Windows, All Outputs
 
Posts: 50 | Location: Scun-thorpe,UK | Registered: November 14, 2012Report This Post
Expert
posted Hide Post
Glad to see this technique was useful to someone!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
This is great. A different example with text is in the Techinical memo 4701, although Francis's is much easier to understand.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report 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     [HOW-TO] Multi-drill-down to different Targets

Copyright © 1996-2020 Information Builders