Focal Point
[CLOSED] Displaying Traditional Documents/Images from the Portal Resource Pane

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

June 29, 2016, 08:08 PM
A Fisher
[CLOSED] Displaying Traditional Documents/Images from the Portal Resource Pane
First, let me state that I'm in no way skilled in the ways of WebFOCUS, so if I've overlooked something very simple or missed an answer to this in the documentation, I apologize. I've spent a couple of hours searching available documentation and looking over the forum and haven't found something that speaks to this issue (these issues).

I am using the portal / ibi_apps structure. Within the Content folder, via the Resources pane, I would like to host/serve traditional (pre-created) content in the form of .PDFs. When I upload the PDF to the content folder, whether as a Document or Image, it's then listed in the folder I uploaded it to, so far so good.

When I attempt to view that .pdf, it opens a new window with the PDF viewer from within the browser. There are the proper number of pages, but they're all blank. The 'name' of the .pdf within the viewer is views.bip.

Questions:
- What do I need to do to get the .pdf to display properly?
- Is there a way to change the name of the file, from the portals perspective, to something other than 'views.xxx' or servlet.xxx? This behavior of defaulting the file name to views is not limited to .pdfs. Through my testing, it seems that most file types (.docx / .pptx, etc) default to the views name, while .xlsx files retain the name of the original file uploaded.
- Is there a way to change the default behavior to display the file within the browser instead of defaulting to the 'Save As' dialog box? I found no mention of changing this behavior within the documentation.

Please point me in the right direction if I'm missing something extremely basic here, or if I should break the questions above into separate issues.

Thanks in advance for any help someone can provide.
(WebFOCUS 8007, Gen 56, Apache Tomcat 7.0.33)

This message has been edited. Last edited by: A Fisher,


WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS
June 30, 2016, 05:20 PM
Doug
Where are these be stored: Data Servers or Domain / Content Folders?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
July 01, 2016, 03:50 AM
Tony A
There have been various discussions on this over recent years and several methods given.

One of the ones that had a wider success rate was one from Francis in Jan 2014 - here.

It uses a redirect and therefore the documents need to exist in a web accessible location.

It can be difficult to locate older relevant posts without the correct key word(s) so it is always useful to try several. I relocated this by using "open existing pdf".

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 
July 01, 2016, 11:37 AM
A Fisher
Thanks for the help/tips, gentlemen.

W/ re: to the question about where the files are stored: From the portal I opened the resources pane, right click on the Content folder to create a new folder to store them all, and then just right click and choose upload on that newly created folder. I then choose upload.

I'm pretty sure that would mean that they're stored on the Domain/Content Folders, though that's just an (little)educated guess.

We are currently storing them in a web accessible location, so the idea of using redirects, at least initially, would be a good step until I can find another method that's a little more graceful.

I'll post again after I've had a chance to try the method you mentioned.


WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS
July 26, 2016, 05:44 PM
A Fisher
I wasn't able to get the above methods to work, but have heard that this issue is 'fixed' in version 8.2 so I have stopped attempting to rectify this on our current version.


WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS