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.
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
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.