Focal Point
[SOLVED] Issue with Muli-Drilldowns from HTML report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4227007626

November 29, 2012, 05:07 PM
Tomsweb
[SOLVED] Issue with Muli-Drilldowns from HTML report
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
November 29, 2012, 05:35 PM
Norb Eckert
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
November 29, 2012, 07:40 PM
Mika Keranen
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
November 30, 2012, 08:04 AM
Tony A
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 
November 30, 2012, 08:20 AM
Tony A
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 
December 03, 2012, 12:08 PM
Tomsweb
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
December 03, 2012, 01:18 PM
Tony A
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