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.
You're defining two drilldowns for the same column with the same WHEN clause, so you'll only see the PDF link. If you'd like to create a multi-drilldown link, the syntax is different:
Might I say that you're jumping around this problem like a proverbial ####### (your choice of phrase here )
If we get back to what you are trying to do overall, would the following be true?
You need to output two similar reports, work orders and customer orders, with the ability to drill to a sub report in a choice of formats - HTML and PDF.
If that is true then you have obviously identified that you need to use DRILLMENUITEM syntax, and that has caused you problems because of how you need to combine the two reports into two seperate components to be "stitched" together and therefore the DRILLMENUITEM javascript gets "confused".
The simple way to move forward to encompass the solutions to the individual "challenges" would be to HOLD FORMAT HTMTABLE (not PCHOLD HTML) the reports and then stitch them together using an HTMLFORM. By using HTMTABLE you are effectively stripping off the outer HTML "glue" and therefore you will have to remedy that yourself in the HTMLFORM.
With your existing code, HOLD the two reports FORMAT HTMTABLE AS HTML1 and HTML2 and then consider this code to stitch them together (change the IBIAPP_app=focalpoint to your app folder) -
-HTMLFORM BEGIN
<!DOCTYPE html>
<html>
<head>
<title>Tomsweb Two Reports</title>
<script language='javascript'>
var ibiOptions = new Array("multidrill");
var focexurl = "/ibi_apps/WFServlet?IBIF_webapp=/ibi_apps&|IBIC_server=EDASERVE&|IBIWF_msgviewer=OFF&|IBIAPP_app=focalpoint&";
var fochtmlurl = "/ibi_html";
var serverLanguage='en';
</script>
<script language='javascript' src='/ibi_html/javaassist/nls.js'></script>
<script language='javascript' src='/ibi_html/javaassist/ibi/html/js/ibigbl.js'></script>
<script language='javascript'>
ibigblloadCss(null);
</script>
</head>
<body>
<table><tr><td>
!IBI.FIL.HTML1;
</td><td style="width:20px;">
</td><td>
!IBI.FIL.HTML2;
</td></t></table>
</body>
</html>
-HTMLFORM END
Just so that you do not think this is me "waving my magic wand" (keep it clean at the back!!), I grabbed the "outer" scripting requirement by first running one of the reports PCHOLD FORMAT HTML to use in the HTMLFORM. I also used the fact that, by having the files as HTMTABLE output, the MDItem array would be correctly created across both outputs.
If you want to go one step further and add hover text, then it's a simpleprocess of adding some JQuery into the mix.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
BTW, this is documented in Dev Studio help files - search on "Multiple Drill-Down" and go to the bottom of the "Creating Multiple Drill-Down links" item.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Thank you very much Tony. I have been doing so much traditional coding that I haven't had opps to use HTMLFORMS. I tried your recommendations and it works so nicely.
I hate to admit this but I do not have experience w JQUERY. I am doing a search to add the drilldowns in the HTMLFORM and I hope to get some hover text.