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     [CLOSED] Format after Drilldown

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Format after Drilldown
 Login/Join
 
Member
posted
I have a report that has a 3 trier drilldown to it State, City, Muni. Is there a way to allow the user to drill down to any level (via HTML) and then select an output option (EXCEL, PDF,PRINTER)?

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


Webfocus 7.6.6
Solaris 10 Sparc 64bit
 
Posts: 20 | Registered: January 21, 2009Report This Post
Expert
posted Hide Post
Check this out:

HTML Report with Excel and PDF options


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
There really isn't a way to "two-step' this process, but here are two different ways to accomplish what you want:

Give them a multidrill option where each option and each format is provided. Could look ugly because you have to have an option for every possibility (State/Excel, State/PDF, City/Excel, City/PDF, etc.) (BTW, there isn't an output option for PRINTER - that would probably just be PDF). My approach would probably be to run it in whatever the current output format is (say HTML) and then put a couple links on the drill down report to re-run itself passing the same parm values, only changing the output format to either Excel or PDF.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
grab a few icons off the web, or off your desktop, for adobe and excel and activereports and stick them in your ibi_html/vis directory on your server.
Then define these icons:
PDF/A100    = IF '&WFFMT'   IS 'HTML' THEN
  '<IMG TITLE="PDF" SRC="/ibi_html/vis/pdf.gif" style="border: 1px solid #FFFFFF;" >'
   ELSE ' ';
EXCEL/A100  = IF '&WFFMT'   IS 'HTML' THEN
  '<IMG TITLE="EXCEL" SRC="/ibi_html/vis/excel.gif"  style="border: 1px solid #FFFFFF;"> ' ELSE ' ';
ACTIVE/A200 = IF '&WFFMT'   IS 'HTML' THEN
  '<IMG TITLE="Active Report" SRC="/ibi_html/vis/activereport.jpg" 
 height=18 style="border: 1px solid #FFFFFF;"> ' ELSE ' ';


In your report, plop these icons in the 1st row of your heading
HEADING
"<PDF<+0><EXCEL<+0><ACTIVE"

then write ordinary drilldowns
TYPE=HEADING,LINE=1,ITEM=1,FOCEXEC=thisfex(WFFMT='PDF' \
...all the others you need
),$
TYPE=HEADING,LINE=1,ITEM=3,FOCEXEC=thisfex(WFFMT='EXL2K' \
...etc...you get the idea. Darin said all this..i just added some color...




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Thanks for the color commentary Smiler

That's exactly what I was talking about - was just too lazy to spell it all out I guess.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Member
posted Hide Post
Susannah when you say Define these icons where would that be? In the fex file?


Webfocus 7.6.6
Solaris 10 Sparc 64bit
 
Posts: 20 | Registered: January 21, 2009Report This Post
Expert
posted Hide Post
yes




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
I put it at the top of the code and it bombs out. Are there certain tags that need to go around it? DOes it need to be placed in any particular order?


Webfocus 7.6.6
Solaris 10 Sparc 64bit
 
Posts: 20 | Registered: January 21, 2009Report This Post
Expert
posted Hide Post
sounds to me as though you need a basic course in the language and its structure.
that would be your next stop.
-s




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
OK I got all the code in place. I defined my virual fields for the two icons. Then I placed them on the heading and set up the two TYPE=HEADING calls just like Susannah suggested. It works but it took a one second query and changed it into about 2 minutes. Any ideas why this would happen? The sql is doing a sum and only returning 12 records.


Webfocus 7.6.6
Solaris 10 Sparc 64bit
 
Posts: 20 | Registered: January 21, 2009Report This Post
Expert
posted Hide Post
Then your SQL is not efficient, probably because the virtual fields were not defined in the correct location. If you defined them in the section of the program that extracts data from the DBMS tables, the virtual fields are defined for each input row, not just for the output rows. The virtual fields should be defined after the extracted data is sent to a hold file.

By the way, did you take a look at my previous suggestion regarding "HTML Report with Excel and PDF options"?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Francis,
I am trying to use you code. I have a html page that is calling the (external) procedure that I have used your code in. I get the html display but when I run the others I get page not found. The New Url is
http://someserver.com/ibi_apps...=P&RANDOM=somenumber. Any suggestions?


Webfocus 7.6.6
Solaris 10 Sparc 64bit
 
Posts: 20 | Registered: January 21, 2009Report This Post
Expert
posted Hide Post
IM,

It looks like the form that originally submitted the request has a METHOD of POST, therefor the URL does not contain the name of the FEX, nor the passed variables. I suppose my technique is now a little old-fashioned as it will only work on URLs where the form that submits the request has a METHOD of GET.

JavaScript or AJAX could probably be used to resubmit the original request, changing the Output format form field

My apologies.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Check out this post: DEFINE Breaks SQL Aggregation


quote:
Originally posted by IronMaiden:
OK I got all the code in place. I defined my virual fields for the two icons. Then I placed them on the heading and set up the two TYPE=HEADING calls just like Susannah suggested. It works but it took a one second query and changed it into about 2 minutes. Any ideas why this would happen? The sql is doing a sum and only returning 12 records.


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report 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     [CLOSED] Format after Drilldown

Copyright © 1996-2020 Information Builders