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] Calling Existing PDF/Excel Files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Calling Existing PDF/Excel Files
 Login/Join
 
Gold member
posted
I need to have an HTML page with two parameters (District, Branch) and two buttons, one that calls a PDF file and one that calls an Excel file. The PDF & Excel files need to be called according to the chosen parameters. Ex: I choose the Seward Park District and the Hudson Park Branch and I click the PDF button. I need to call the URL for the PDF file that already exists, I'm not creating it on the fly. There are 173 different files, is there a way to use just two buttons, one that calls the PDF files and one that calls the Excel files, to do this without having to create 173 buttons?

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


WebFOCUS v. 7.6.8 || Windows XP || Format Output: HTML, PDF, EXCEL
 
Posts: 57 | Location: NYC | Registered: November 13, 2008Report This Post
Virtuoso
posted Hide Post
Two approaches:

1. Call a fex, feeding it the two location parameters and the format info, to compute the required url and deliver an html page that replaces itself with the url.

2. Have javascript within the launch page compute the required url, imbed that info in form and submit it.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
If the files are accessable via a direct url options 2 would be better. Another option would be just have WebFOCUS create a report that has the links to the url using the html code.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Gold member
posted Hide Post
quote:
Originally posted by j.gross:
Two approaches:

1. Call a fex, feeding it the two location parameters and the format info, to compute the required url and deliver an html page that replaces itself with the url.

2. Have javascript within the launch page compute the required url, imbed that info in form and submit it.


Do you have sample code for either of these that I could take a look at?


WebFOCUS v. 7.6.8 || Windows XP || Format Output: HTML, PDF, EXCEL
 
Posts: 57 | Location: NYC | Registered: November 13, 2008Report This Post
Virtuoso
posted Hide Post
How are the Excel / PDF files named?
How does the filename reflect the selected branch (or branch within district)?

For 1., have fex compute the file's &url as "http://[server]/[path]/[filename]", and use -htmlform to compose a redirect page, referencing the file as "!IBI.AMP.url;".

See, for example, http://en.wikipedia.org/wiki/URL_redirection for how to code a redirect page.

For 2., Build your html page in html composer, with the two controls as part of a form, where the submit button calls a static arbitrary url. Have your pre-submit validation js routine replace the form's action attribute with the url.

This message has been edited. Last edited by: j.gross,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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] Calling Existing PDF/Excel Files

Copyright © 1996-2020 Information Builders