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     [SOLVED] Issue with Muli-Drilldowns from HTML report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Issue with Muli-Drilldowns from HTML report
 Login/Join
 
Master
posted
I have coded two dilldown links with the ALT tag, but only the last
one shows up the report.

Here is the code:

 
TYPE=DATA,
COLUMN=N4,
COLOR=GREEN,
SIZE=10,
STYLE=UNDERLINE,
WHEN=ORDST EQ 'C',
FOCEXEC=app/rpt11(ASGX=ASSIGNEE WDCX=WDC AGEX='&XAGE' WFMT='HTML'),
ALT='Open Customer Orders - HTML',
$
TYPE=DATA,
COLUMN=N4,
COLOR=GREEN,
SIZE=10,
STYLE=UNDERLINE,
WHEN=ORDST EQ 'C',
FOCEXEC=app/rpt11(ASGX=ASSIGNEE WDCX=WDC AGEX='&XAGE' WFMT='PDF'),
ALT='Open Customer Orders - PDF',
$


I am not sure what I've done wrong. Does anyone have any suggestions?

Thanks!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Platinum Member
posted Hide Post
I've only used and seen the "WHEN" attribute coded at the end of the line. You might try moving it there as:

...
STYLE=UNDERLINE,
FOCEXEC=app/rpt11(ASGX=ASSIGNEE WDCX=WDC AGEX='&XAGE' WFMT='PDF'),
ALT='Open Customer Orders - PDF',
WHEN=ORDST EQ 'C',
$


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Gold member
posted Hide Post
Hi,

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:

TYPE=DATA,
     COLUMN=N4,
     COLOR='GREEN',
     SIZE=10,
     STYLE=UNDERLINE,
     WHEN=ORDST EQ 'C',
     DRILLMENUITEM='Open Customer Orders - HTML',
        FOCEXEC=app/rpt11(ASGX=ASSIGNEE WDCX=WDC AGEX='&XAGE' WFMT='HTML'),
     DRILLMENUITEM='Open Customer Orders - PDF',
        FOCEXEC=app/rpt11(ASGX=ASSIGNEE WDCX=WDC AGEX='&XAGE' WFMT='PDF'),
$

Mika


WebFOCUS 7.6.x
PMF 5.2.x
 
Posts: 58 | Location: Sydney, Australia | Registered: April 22, 2005Report This Post
Expert
posted Hide Post
Might I say that you're jumping around this problem like a proverbial ####### (your choice of phrase here Wink)

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, 2004Report This Post
Expert
posted Hide Post
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, 2004Report This Post
Master
posted Hide Post
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.

Thanks again.


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
Pleasure, I quite enjoyed it actually Confused

A good site to look at (when you have time), apart from the JQuery home site, is http://www.w3schools.com/jquery/default.asp

BTW, Mika has gven the correct syntax for multiple drill downs above.

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, 2004Report 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     [SOLVED] Issue with Muli-Drilldowns from HTML report

Copyright © 1996-2020 Information Builders