Focal Point
[CLOSED] File path in WF8

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

November 29, 2016, 12:10 PM
BI_Developer
[CLOSED] File path in WF8
Hello

We moved from WF 7 to WF 8. I am having some problems with URLs that are linked to PDF files.

This worked in both versions 7 and 8 when "server" is replaced with new server name: (works for both fex files and html files)
 h-t-t-p://server.companyname.com/ibi_apps/WFServlet?IBIAPP_app=app_folder_name&IBIF_ex=fex_name.fex


Worked in version 7:
h-t-t-p://server.companyname.com/approot/app_folder_name/file_name.pdf

In 8, when I replace the "server" with new one, it says file is not found even though file is existing there. 


Please suggest.

Thanks.

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


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
November 29, 2016, 12:51 PM
Francis Mariani
The server name in a WebFOCUS URL is for the client (web) server. 'approot' is an alias for a folder on the client server, not the reporting server.

In my laymen's terms: One of the only ways 'approot' can point to the reporting server is if the client server and reporting server are on the same machine.

So, in WF 7 were both servers on the same machine? Is that the case for your WF 8 environment?

In my environment the two servers are on different machines.

To access a PDF file on the client server, I can use this URL:
http://my-server/approot/test/one_web.pdf

I'm not sure if a PDF existing on the reporting server can be opened via a URL (unless both servers are on the same machine or the client server has an alias pointing to the folders on the reporting server.

To access a PDF file on the reporting server, take a look at the following FocalPoint thread. It's from a couple of years ago, but should still be valid. A solution or three are proposed near the end of the thread.

[SOLVED] open existing PDF in .fex


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
November 29, 2016, 01:35 PM
Squatch
If your PDF is in the Content area, it would be something like this:

h-t-t-p://server.companyname.com/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS:/WFC/Repository/your_folder_name&BIP_item=your_pdf_file.pdf



App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
November 29, 2016, 02:17 PM
Francis Mariani
Yes, since the repository URL would be
http://my-server/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS:/WFC/Repository/Test/FrancisMariani&BIP_item=one_rep.pdf
I thought we would be able to use the same URL structure for a PDF file on the reporting server, but it doesn't work
http://my-server/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS:/EDA/EDASERVE/test&BIP_item=one_eda.pdf


Why should it be made easy?


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
November 29, 2016, 03:36 PM
vaayu
quote:
h-t-t-p://server.companyname.com/approot/app_folder_name/file_name.pdf

Can you open any .htm from that folder?
quote:
http://server.companyname.com/approot/app_folder_name/some.htm


If not you need to look into web app configuration.


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
November 30, 2016, 03:23 AM
Tony A
Just ensure that the "approot" context is added to your web application server. It doesn't have to be on the same server, just accessible via a URL.

In WF7 I think that this used to be added as a "context" but not in WF8 as a different method is employed?

Look at the following document and also check out the installation manuals.

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 
December 01, 2016, 11:12 AM
Peter Josef
Thanks Toni, do you mean the Application Directories setting on the Reporting server?

I.a. D:/ibi/apps; (default) d:/ibi/apps/folder_x; etc


WF7703M, Windows 2008 server, Oracle WebLogic 11g, MSSQL 2008 R2