Focal Point
[SOLVED] Link to non WebFocus resources stored in repository

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

August 04, 2016, 03:55 PM
Egon
[SOLVED] Link to non WebFocus resources stored in repository
Hi,

I'm trying to create a simple HTMLFORM that I'm writing myself where I want to link to a couple of files I've stored in the repository database that are Excel and PDF. Non were created in WebFocus.

My HTML
 
<a href="link to the file, this is the part I don't know" target="_blank">Sample text</a>
 


The location of the repository file is:
 
IBFS:/WFC/Repository/Uni_Dashboard/CDS/CDS_2010_2011.pdf
 


Is this at all possible?

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


WebFocus App Studio 8.1.0.5, Windows 7 64bit.
August 04, 2016, 04:18 PM
Squatch
Try this:

<a href="/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=IBFS:/WFC/Repository/Uni_Dashboard/CDS&|BIP_item=CDS_2010_2011.pdf" target="_blank">Sample text</a>

(The pipe characters are there so that HTMLFORM doesn't get confused... take them out if you decide to do this in a JavaScript file.)


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
August 04, 2016, 04:28 PM
Egon
quote:
<a href="/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=IBFS:/WFC/Repository/Uni_Dashboard/CDS&|BIP_item=CDS_2010_2011.pdf" target="_blank">Sample text</a>


That worked perfectly, thank you!


WebFocus App Studio 8.1.0.5, Windows 7 64bit.