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.
How can I code a single fex whereby I execute multiple fex's in succession getting separate pdf's (one for each fex)?This message has been edited. Last edited by: Ted Michalski,
If what you expect is to run the report and get each independent PDF in the client's browser via PCHOLD that is not possible. Well, you cannot really open multiple PDF files in the same browser anyway and there is no way (that I know of) that would trigger multiple browser windows upon receiving results from the WebFOCUS client.
You could however create those PDF files in your server and implement other means to access them.
You could try playing with some js to open the various PDF reports in a new window. I use the below code to call drilldowns and still have the master rewport displayed in a window.
<html>
<head>
<title>Drilldown Report</title>
<script language="JavaScript">
var idx = document.URL.indexOf('?'); /* parameters on this URL? */
var params = new Array(); /* define an array */
if (idx != -1) /* if any params detected */
{
/* split all the parameters as deliniated by an "&" */
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
/* go through all parameters detected */
for (var i=0; i<pairs.length; i++)
{
/* grab the variable and the value */
nameVal = pairs[i].split('=');
eval("V_"+" = new ParmResult(nameVal[0], nameVal[1]);");
params[eval(params.length)] = eval("V_");
}
}
function Request(parmname)
{
if (params.length > 0)
{
for (i=0; i < params.length; i++)
{
if(params[i].name == parmname)
{
return params[i].val
}
}
}
return null
}
function ParmResult(name, val)
{
this.name = name;
this.val = val;
}
</script>
</head>
<body>
<script language="JavaScript">
var cmd="/ibi_apps/WFServlet?IBIF_ex=fexname &COLUMN=" + Request("COLUMN") + "&STRDTE=" + Request("STRDTE") + "&ENDDTE=" + Request("ENDDTE") + "&CLASS=" + Request("CLASS") + "&RPTFMT=" + Request("RPTFMT");
window.open(cmd,"");
history.back();
</script>
</body>
</html>
Duane
WebFOCUS 8.0.7 DS 8.0.7 AS 8.0.7 Windows Output: Excel, HTML, PDF, AHTML,Mobile In Focus 1982
Have you tried the "Table of Contents" option? You can find information on that by searching the WebFocus help for "TOC". Here's an example:
-TYPE WEBFOCUS CGIVAR IBIWF_mreports=INDEX
-TYPE WEBFOCUS CGIVAR IBIWF_index=OFF
-TYPE WEBFOCUS CGIVAR IBIWF_mprefix=Car Report
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9,$
TYPE=DATA, COLUMN=1, WRAP=2,$
TYPE=DATA, COLUMN=2, WRAP=2,$
$
ENDSTYLE
END
-RUN
-************************************************
-TYPE WEBFOCUS CGIVAR IBIWF_mprefix=Model Report
TABLE FILE CAR
PRINT MODEL
BY CAR
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9,$
TYPE=DATA, COLUMN=1, WRAP=2,$
TYPE=DATA, COLUMN=2, WRAP=2,$
$
ENDSTYLE
END
Rob
WebFocus 8201m on Windows; App Studio 8201; Procedures: WebFocus with SQL; HTML Parameter Pages & Dashboard; Output: Excel, HTML, & PDF.
Posts: 88 | Location: MI | Registered: July 23, 2009