Focal Point
DrillThrough in HTML

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

January 05, 2007, 12:51 AM
thangam
DrillThrough in HTML
Hi All,

Summary and Detail Report are in HTML format in a page. Is it possible to have drillthrough option in Summary section to go to the detail section in HTML? Drill Through is supported in PDF. But Can I do the same in HTML? If not, do we have any workaround.

Regards,
Thangam
January 05, 2007, 01:35 PM
Kerry
Hi Thangam,

The following manual may be of interest:

Creating Reports With WebFOCUS Language Version 7 Release 1.3
Chapter 3: Displaying Report Data
Section: Creating Drill Through PDF Compound Reports
Page: 3-38 (82)

Reports with DRILLTHROUGH syntax can be rendered in all other styled output formats: HTML, PostScript, EXL2K, and so on. In other formats, the DRILLTHROUGH syntax is ignored.

However, links can be wrapped around data displayed in the report section and HEADING/FOOTINGs following the technique listed below:

How to insert JavaScript to be used in HTML report output

You will need to have an InfoResponse userID/password to access the manual and document.

Hope this helps. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
January 09, 2007, 01:50 AM
thangam
It is done using HREF and bookmark.

Regards,
Thangam
January 09, 2007, 03:58 AM
Tony A
Thangam,

You can use the HREFs with bookmarks without problems providing you use a little thought.
DEFINE FILE CAR
  HREF/A80 = '<a href="#'||COUNTRY||'">'||COUNTRY||'</a>';
  BOOKMARK/A80 = '<a name="#'||COUNTRY||'">'||COUNTRY||'</a><br><a href="#top">Top</a>';
  LOADS_OF_BREAKS/A40 ='<br><br><br><br><br><br><br><br><br><br>';
  TOP_BM/A24 = '<a name="#top">Index</a>';
END

TABLE FILE CAR
BY HREF AS ''
HEADING
"<TOP_BM"
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE HOLD AS INDEX FORMAT HTMTABLE
END
-RUN

TABLE FILE CAR
SUM RCOST
    DCOST
BY BOOKMARK AS 'COUNTRY'
BY CAR
BY MODEL
BY LOADS_OF_BREAKS AS ''
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE HOLD AS DETAIL FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<html>
<head>
<title>Bookmarks</title>
</head>
<body>
!IBI.FIL.INDEX;
!IBI.FIL.DETAIL;
</body>
</html>
-HTMLFORM END

The LOADS_OF_BREAKS field is used to spread the report out so that you can see the actual response to clicking on a link in the index and also when you click on the "Top" link. Yes, I know I could have acheived the same using CSS but I had a touch of CBA syndrome Wink.

T

This message has been edited. Last edited by: Tony A,



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 
January 09, 2007, 07:56 AM
Tony A
For info, I have just tried an example using the drillthrough syntax of the style sheet and it works fine in PDF format but when converted to HTML the anchor tags are not completely formated resulting in a displayed value of >ENGLAND etc.
<TD class='x2'>
>ENGLAND</A>
</TD>
 instead of
<TD class='x2'>
<A HREF=#ENGLAND NAME=somthing>ENGLAND</A>
</TD>

Feature?

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