Focal Point
[SOLVED] Image file path

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

October 12, 2015, 10:23 AM
Nicholas Spyrison
[SOLVED] Image file path
In a working fex, there is a Compute pointing to
 "/approot/images/ibi_green_up_48_48.png"  

this path uses approot; the image resides in EDASERVE/Applications/images/.

I am trying to redirect the path to an image that resides in the Content directory;
 "IBFS:/WFC/Repository/Branding/Images/ibi_green_up_ns.png" 

the image doesn't come through. I have tried variations of the path (like removing 'IBFS:') with no luck.

Is it possible to reference images in the content directory like this, such that we can import/export images?



   'COMPUTE Trend/A200 = IF Labor_Efficiency__ GT .95 THEN  SRC="/approot/images/ibi_green_up_48_48.png" alt="Trending Up" width=20 height=20 border-0>' 
ELSE IF Labor_Efficiency__ LT .90 THEN SRC="/approot/images/ibi_red_down_48_48.png" alt="Trending Down" width=20 height=20 border-0>' 
ELSE  SRC="/approot/images/yellow_line.png" alt="Trending Average" width=20 height=20 border-0>';' 


(IMG intentionally removed.)

This message has been edited. Last edited by: Nicholas Spyrison,


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
October 12, 2015, 10:51 AM
CoolGuy
We try to store and reference images on the Data Servers side of things so they can be reused for multiple apps w/o having to manage multiple copies.

We successfully reference them in the WF stylesheets by using this format:

IBFS:/EDA/EDASERVE/images/image.gif


You can reference them from under Content if you want to go that route via the following format:

IBFS:/WFC/Repository/AppName/subFolder/image.gif



8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
October 12, 2015, 11:13 AM
Nicholas Spyrison
Odd, when I try to use the following path it doesn't work. I double-checked for publication and Case Sensitivity.

 IBFS:/WFC/Repository/Branding/Images/ibi_green_up_ns.png  


Any thoughts?


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
October 12, 2015, 12:48 PM
GavinL
Try this:

/ibi_apps/rs/ibfs/WFC/Repository/Branding/Images/ibi_green_up_ns.png?IBIRS_action=run



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
October 12, 2015, 12:54 PM
CoolGuy
If Gavin's suggestion doesn't work, try this format as well:

/ibi_apps/WFServlet.ibfs?IBFS1_action=RUNFEX&IBFS_path=/WFC/Repository/AppFolder/subFolder/image.gif



8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
October 12, 2015, 03:40 PM
GavinL
I know in 8.1.04, you have to change it, but it wasn't documented by IBI until 8.1.05..

http://infocenter.informationb...Fsource%2Ftopic3.htm



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
October 12, 2015, 03:43 PM
Nicholas Spyrison
Gavin's suggestion didn't work.

CoolGuy's suggestion resulted in a parameter prompt for &IBFS_path. Pasting '/WFC/Repository/Branding/Images/ibi_green_up_ns.png' into the prompt just asked for the parameter again.


Dare I ask how/where you are coming up with these variations?


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
October 12, 2015, 03:46 PM
GavinL
Then the image isn't there or it's a case issue.

quote:
Dare I ask how/where you are coming up with these variations?

Documentation, posted right before your question.


Do me a favor.. Go in through the web ui console, right click on the image and "view" it. Then copy the URL and post it here.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
October 12, 2015, 03:54 PM
Nicholas Spyrison
http://udr-rptbiqw01:8080/ibi_...ndom=9198.8897905685

http://
udr-rptbiqw01:8080/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS%253A%252FWFC%252FRepository%252FBranding%252FImages&BIP_item=ibi_green_up_ns.png&IBI_random=9198.8897905685


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
October 12, 2015, 04:04 PM
CoolGuy
When using my suggestion, try adding a pipe character in between the & and IBFS_path in the URL and see if that helps.

Example:

/ibi_apps/WFServlet.ibfs?IBFS1_action=RUNFEX&|IBFS_path=/WFC/Repository/AppFolder/subFolder/image.gif



8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
October 12, 2015, 04:11 PM
GavinL
Then this should work..

http://udr-rptbiqw01:8080/ibi_apps/rs/ibfs/WFC/Repository/Branding/Images/ibi_green_up_ns.png?IBIRS_action=run




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
October 12, 2015, 04:12 PM
Nicholas Spyrison
The pipe worked like a charm!

Thanks a ton guys!


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
October 12, 2015, 04:13 PM
GavinL
Which one worked?



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
October 12, 2015, 04:14 PM
Nicholas Spyrison
CoolGuy's.

Just tried your's and no dice.


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
October 12, 2015, 04:20 PM
CoolGuy
Glad to help.

GavinL's would probably only work if your site has purchases/activated the Web Services Enablement add-on. I tried his and it does not work for me either due to us not having that add-on purchased and enabled. IBI failed to mention this little bit of vital info in their 8105 doc update announcement GavinL referenced earlier. You have to use the WFServlet if you didn't pay for the add-on.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
October 12, 2015, 04:26 PM
Doug
If your images are in your web apps folder, then the following should work:
DEFINE FILE CAR
NG/A128='[IMG]/approot/test/ng.gif[/IMG]</img>';
OK/A128='[IMG]/approot/test/ok.gif[/IMG]</img>';
END
TABLE FILE CAR
"REPORT 0 ~ OK:<OK NG:<NG"
BY COUNTRY AS '' SUM DEALER_COST AS ''
COMPUTE Mark/A128=IF RETAIL_COST GE 8000 THEN NG ELSE OK; AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT, FONT=ARIAL, SIZE=10, COLOR=NAVY,$
ENDSTYLE
END
-* ng.gif is an image of a red X.
-* ok.gif is an image of a green check mark.
This works for static images (as seen in the heading as "OK:




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
October 13, 2015, 07:54 AM
GavinL
FYI Doug.. /approot/ doesn't always exist. We have it in our Windows environment for Dev, but our prod environment is Linux, which it doesn't exist. So always be careful using it.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server