Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-CLOSED] COMPUTEd IMAGES

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-CLOSED] COMPUTEd IMAGES
 Login/Join
 
Expert
posted
So, what am I missing here? I have images in the app folder, content folder, and web apps folder. I'm running this fex from "webdevel" content folder.
SET PAGE = NOLEAD
APP PATH WEBDEVEL IBISAMP 
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST
-* jpg files
-* App Folder
COMPUTE IMG1/A200 = '<img src="IBFS:/WEB/webdevel/image_x.jpg>';
-* Content Folder
COMPUTE IMG2/A200 = '<img src="IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_x.jpg>';
-*WebApplications Folder
COMPUTE IMG3/A200 = '<img src="IBFS:/WFC/Repository/webfocusdevelopement/image_x.jpg>';
-* gif files
-* App Folder
COMPUTE IMG4/A200 = '<img src="IBFS:/WEB/webdevel/image_x.gif>';
-* Content Folder
COMPUTE IMG5/A200 = '<img src="IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_x.gif>';
-*WebApplications Folder
COMPUTE IMG6/A200 = '<img src="IBFS:/WFC/Repository/webfocusdevelopement/image_x.gif>';
BY COUNTRY BY CAR BY MODEL
END
... Arg

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
 another " maybe 
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
is this syntax peculiar to v8? or peculiar to Linux? it bears zero resemblance to the way we reference images in windows in v7.

oh, yeah, Prarie got it. missing " after gif.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Almost... but not yet... The images come up as "unfound images", the framed red X...
One of the computes:
COMPUTE IMG6/A200 = '<img src="IBFS:/WFC/Repository/webfocusdevelopement/image_check.gif">';

The WF8 syntax, IBFS:/xxx/is used to find stuff in WF8
WF7: -INCLUDE THISFEX
WF8: -INCLUDE IBFS:/WFC/Repository/webdevel/Doug/BaseFolder.thisfex.fex
Capitalization counts in Linux...
IBFS: Information Builders File System...
WFC: WebFOCUS Content (folder)...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Hi Doug,

Are you getting enough coffee? Wink

David, as usual, is right on the money and if you right click and choose properties on one of the broken images, you will see that the Protocol of IBFS: etc. is unknown.

Instead of IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_x.gif you could use /approot/webdevel/image_x.gif


T

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



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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
None of these work so far:
-* jpg files
-* App Folder
COMPUTE IMG1/A200 = '[IMG]IBFS:/WEB/webdevel/image_check.jpg[/IMG]';
-* Content Folder
COMPUTE IMG2/A200 = '[IMG]IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_check.jpg[/IMG]';
-*WebApplications Folder
COMPUTE IMG3/A200 = '[IMG]IBFS:/WFC/Repository/webfocusdevelopement/image_check.jpg[/IMG]';
-* gif files
-* App Folder
COMPUTE IMG4/A200 = '[IMG]IBFS:/WEB/webdevel/image_check.gif[/IMG]';
-* Content Folder
COMPUTE IMG5/A200 = '[IMG]IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_check.gif[/IMG]';
-*WebApplications Folder
COMPUTE IMG6/A200 = '[IMG]IBFS:/WFC/Repository/webfocusdevelopement/image_check.gif[/IMG]';
-* From Tony A
COMPUTE IMG7/A200 = '[IMG]/approot/webdevel/image_check.gif[/IMG]';
COMPUTE IMG8/A200 = '[IMG]IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_check.gif[/IMG]';
This is in a fex which I am running from within Dev Studio 8.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
quote:
COMPUTE IMG1/A200 = ' ';
-* Content Folder
COMPUTE IMG2/A200 = ' ';

I'm not surprised! That is tagging that you would use in the Forum!! You need more coffee Doug Smiler

Try
COMPUTE IMG1/A200 = '<img src="/webdevel/image_check.jpg" />';
COMPUTE IMG2/A200 = '<img src="/APPPATH/webdevel/image_check.jpg" />';

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
Not there yet with the latest two lines of code... Now I have 10 broken images... Going to get more coffee now...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Hmm, should have mentioned that I'm on a single tier and running directly from App Studio. Not tried it from a portal etc.

I can only suggest that you right click on the "broken image" and select properties to see what URL has been derived.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
Here's the code showing and using the properties, with the same broken image results:
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST
-* jpg files
-* App Folder
-*Properties:                  ibfs:/WEB/webdevel/image_check.jpg
COMPUTE IMG1/A200 = '<img src="ibfs:/WEB/webdevel/image_check.jpg">';
-* Content Folder
-*Properties:                  ibfs:/EDA/EDASERVE/APPPATH/webdevel/image_check.jpg
COMPUTE IMG2/A200 = '<img src="ibfs:/EDA/EDASERVE/APPPATH/webdevel/image_check.jpg">';
-*WebApplications Folder
-*Properties:                  ibfs:/WFC/Repository/webfocusdevelopement/image_check.jpg
COMPUTE IMG3/A200 = '<img src="ibfs:/WFC/Repository/webfocusdevelopement/image_check.jpg">';
-* gif files
-* App Folder
-*Properties:                  ibfs:/WEB/webdevel/image_check.gif
COMPUTE IMG4/A200 = '<img src="IBFS:/WEB/webdevel/image_check.gif">';
-* Content Folder
-*Properties:                  ibfs:/EDA/EDASERVE/APPPATH/webdevel/image_check.gif
COMPUTE IMG5/A200 = '<img src="ibfs:/EDA/EDASERVE/APPPATH/webdevel/image_check.gif">';
-*WebApplications Folder
-*Properties:                  ibfs:/WFC/Repository/webfocusdevelopement/image_check.gif
COMPUTE IMG6/A200 = '<img src="ibfs:/WFC/Repository/webfocusdevelopement/image_check.gif>';
-* From Tony A
-*Properties:                  
COMPUTE IMG7/A200 = '<img src="/approot/webdevel/image_check.gif">';
COMPUTE IMG8/A200 = '<img src="IBFS:/EDA/EDASERVE/APPPATH/webdevel/image_check.gif">';
COMPUTE IMG9/A200 = '<img src="/webdevel/image_check.jpg" />';
COMPUTE IM10/A200 = '<img src="/APPPATH/webdevel/image_check.jpg" />';
BY COUNTRY BY CAR BY MODEL
ON TABLE SET HTMLCSS ON
END
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Doug,

Get rid of the "ibfs:/EDA/EDASERVE/" prefix of your img src attribute. IBFS: is not a valid protocol for a web address - it only has meaning within WebFOCUS.

Type the following into the browser address (replacing the server etc. as necessary) and see if you get an image.

http[s]://[yourserver][: port]/APPPATH/webdevel/image_check.gif

Bottom line, if your browser cannot resolve the url that you are placing into your img tag then you are not going to see an image!


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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Just copy your images to the app folder and refer /approot/foldername/imagename in your code.

That should work.


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Expert
posted Hide Post
Trying Tony's suggestion...

Reference WFDevConsultant:
quote:
Just copy your images to the app folder and refer /approot/foldername/imagename in your code.

Done that, NG:
COMPUTE IMG4/A200 = '<img src="IBFS:/WEB/webdevel/image_check.gif">';
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
quote:
Get rid of the "ibfs:/EDA/EDASERVE/" prefix
Didn't work.
COMPUTE IMG2a/A200 = '<img src="APPPATH/webdevel/image_check.jpg">';
-* or:
COMPUTE IMG2a/A200 = '<img src="/APPPATH/webdevel/image_check.jpg">';
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
It needs to be /approot/webdeve1/image_check.jpg.

This is what we do

EXIMG/A250='Excel';


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Guru
posted Hide Post
Try this if you want to keep your images in the Repository

COMPUTE pict/A200V = '<img src="/ibi_apps/views.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=IBFS:/WFC/Repository/webfocusdevelopement&|BIP_item=/image_check.jpg" >';


In general

 src="/ibi_apps/views.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS:/WFC/Repository/[Foldername]&BIP_item=[imagename.jpg]"


You can also use subfolders

Been using it since 8.0.01 - tested with 8.1.04 too.

One thing to note however, if you try to do this InfoAssist it will show you the HTML code rather than the image.
This is because InfoAssist decides to add ON TABLE SET HTMLENCODE ON to all procedures which disables HTML code in your report. Currently this can't be turned off at the user lever.

Instead to resolve this issue you have two options:

1) Manually edit the code (right click and choose Edit With... Text Editor) and change change the line

ON TABLE SET HTMLENCODE ON

to read

ON TABLE SET HTMLENCODE OFF

2) Turn off HTML Encode for all reports

As administrator, click on "Administration" then "Administration Console". then in the new window Expand "Utilities" and Click "InfoAssist Properties"
Down near the bottom of the "Tool Options" section uncheck "Encode HTML" and click the "Save" button.

Note: If you don't choose the 2nd option then everytime you edit a report in IA it will default back to ON TABLE SET HTMLENCODE ON

Hope this helps

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
Thanks everyone... Still no images... Time to open a case for this...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
The final Solution:
SET PAGE = NOPAGE
SET BASEURL=http://this.that.net
APP PATH IBISAMP
TABLE FILE CAR 
BY COUNTRY AS '' SUM DEALER_COST AS '' 
COMPUTE Mark/A54=IF RETAIL_COST GE 8000
                 THEN '<img src="/approot/webfocusdevelopement/ng.gif"></img>'
                 ELSE '<img src="/approot/webfocusdevelopement/ok.gif"></img>'; AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT, FONT=ARIAL, SIZE=10, COLOR=NAVY,$
ENDSTYLE
END

This message has been edited. Last edited by: Doug,
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Tony A 16 July 2015 8:57 AM
quote:
you could use /approot/webdevel/image_x.gif

WFDevConsultant 16 July 2015 5:34 PM
quote:
and refer /approot/foldername/imagename in your code

We tried to tell you Doug! Wink

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
quote:
you could use /approot/webdevel/image_x.gif
would have worked if I used the web apps folder name.

The 8080, which showed up in the properties of the broken link, got in the way.

"webdevel" is the name of the app folder and "webfocusdevelopement" is the name of the web applications folder. It's all in the name, and it's working like I thought it should.

So, thank you Tony and thanks to all the others...

~ Doug
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-CLOSED] COMPUTEd IMAGES

Copyright © 1996-2020 Information Builders