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 |