Focal Point
[CLOSED] Run in new window from .fex html page

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

June 09, 2010, 01:17 PM
SRC
[CLOSED] Run in new window from .fex html page
We have a launch page that is created using html code within a fex. When the user selects PDF output, it opens in the same page and hitting the BACK button fails to return to the html launch page. So they have to kill the report and go through the whole startup routine again. Actually, if you click the back button several time rapidly you may return to the launch page but that's a little silly to tell the customers.

I don't know how to make PDF open in a new window.

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


Dev Studio /7.6.11/7.7.02M
MVS/USS
AIX/SOLARIS
Windows WF Client 7.6.8/7.6.11
June 09, 2010, 02:13 PM
njsden
You have to first analyze how the PDF option from the HTML code is being invoked.

If the implementation is done via an <a> HTML tag, you will need to adjust the code to add a target attribute and set it to _blank.

...
<a href="http://myhost/ibi_apps/WFServlet?IBIFex=...." target="_blank">PDF Output</a>
...


This, of course, has to be done in the HTML piece of your code.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
June 10, 2010, 04:20 AM
Tony A
quote:
click the back button several time rapidly you may return to the launch page
Actually, in IE, you only need to click the small arrow within the "back button" and then select the second item in the list, this is the same as going back in the browser history 2 items.

You have to do this beacuse of the redirection and if you only click the back button, then the browser history points to the redirection which redisplays the PDF form. Going back 2 steps in the browser history should give you the launch page.

That's the explanation of why, the "what to do" has been covered above by Neftali, although I would urge you to read a little on the HTML "Target" attribute of the anchor tag ( to understand how you can specify different targets.

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