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     Display PDF Documents From a Maintain Form Button.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Display PDF Documents From a Maintain Form Button.
 Login/Join
 
Gold member
posted
I need to show the scanned PDF document associated with a record that is displayed on a maintain form. The user with click on a button to show the scanned document which is in a directory on the same server as the master files.
I need the Java Script code to put behind the button click event to display the PDF. I found JS code in the forum but have not been successful in getting it to work behind a button.
Thanks, Kent


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
 
Posts: 63 | Location: Ft. Wayne, IN | Registered: February 20, 2007Report This Post
Virtuoso
posted Hide Post
Example of js:
  
<input type='button' value='show pdf' onClick='window.open("/approot/baseapp/name.pdf");'>


Is this what you are looking for?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Virtuoso
posted Hide Post
I had a similar requirement in my maintain. It did not concern a readily available pdf document, but rather one that had to be prepared on the fly (by Webfocus of course). In short it is the result of an ON TABLE PCHOLD FORMAT PDF request.
The way I first tried to solved this was similar to dhagen's method above.
The disadvantage of this in my case was the fact that maintain indeed open up the new window, but it never gave it focus (it will probably do so with dhagen's exact solution). So this was not an option for me. I then decided to display the document in the current maintain page. The way this works for me is:
- include a frame in the maintain page at the bottom (or wherever there is free space)
(in my case it is called PDFrame)
- include a variable (not visible foir the user) that contains the action you wish to perform.
(in my case the variable is called Urltxt_Edit)
- include a piece of javascript that will pick up this variable when loading the page and sets the frame's location to whatever is in the variable.
in my case this is:
var urltxt = document.getElementById("Urltxt_Edit").value;
document.getElementById("PDFrame").src=urltxt;

And this gives me exactly what I wanted.

Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 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     Display PDF Documents From a Maintain Form Button.

Copyright © 1996-2020 Information Builders