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.
I have a BIP that needs to be accessed from "external". When I say "external" I mean that from users that access the portal NOT from a VPN connection or from our system domain. I already have everything setup to have them accessing the BIP and it does work except that the images are not displayed. I mean that I have a https url which is accepted by our firewall. Using MS Edge (internally) create the same problem meaning that when I use MS Edge instead of IE (which is the organisation browser...) I don't have the icon images displayed.
I have tried several ways and combinations but it seems that I haven't been able to figure the good one.
Using the sample code below I can illustrate my problem. I thought that because I was using images located on RS was the reason why when running from external access or from MS Edge they were not displayed. Reason why I have tried to used the IBFS way. Having -Situation A- activated, I can have my icons displayed on the position and header line that I want when using IE but not MS Edge Having -Situation B- activated, I have the image display as a heading image but cannot have it positioned as I need (both IE and Edge)
Any idea what I may miss or how should have this work ?
I am pretty sure that if I can make MS Edge work as expected that my external access run will also work properly.
DEFINE FILE CAR
-*-* Situation A
-*-* Working as expected : displaying image as icon in header but not displayed from external access execution or using MS Edge internally
IMG_LOC /A150 = IF COUNTRY EQ 'ENGLAND' THEN '<IMG SRC="file:\\server\folder\img\up_white_triangle.png" style="border-style: none;" alt="">'
ELSE IF COUNTRY EQ 'JAPAN' THEN '<IMG SRC="file:\\server\folder\img\down_white_triangle.png" style="border-style: none;" alt="">'
ELSE '<IMG SRC="file:\\server\folder\img\white_dash.png" style="border-style: none;" alt="">';
-*-* Situation B
-*-* Displaying image location text instead of icon image. Display as a heading image, need as header icon
-*IMG_LOC /A150 = IF COUNTRY EQ 'ENGLAND' THEN 'IBFS:/WFC/Repository/Public/up_white_triangle.png'
-* ELSE IF COUNTRY EQ 'JAPAN' THEN 'IBFS:/WFC/Repository/Public/down_white_triangle.png'
-* ELSE 'IBFS:/WFC/Repository/Public/white_dash.png';
END
TABLE FILE CAR
SUM COMPUTE AMTX /A9V = FPRINT(RETAIL_COST, 'D7', 'A9V'); NOPRINT
IMG_LOC NOPRINT
BY COUNTRY NOPRINT
ON COUNTRY PAGE-BREAK
HEADING
"KPI Text"
"<AMTX<IMG_LOC"
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
SQUEEZE=ON,
LEFTMARGIN=0.0,
RIGHTMARGIN=0.0,
TOPMARGIN=0.0,
BOTTOMMARGIN=0.0,
STYLE=BOLD,
COLOR=WHITE,
PAGECOLOR=RGB(8 97 74),
$
TYPE=REPORT,
BORDER=OFF,
JUSTIFY=CENTER,
$
TYPE=HEADING,
LINE=1,
OBJECT=TEXT,
ITEM=1,
SIZE=14,
WIDTH=2.5,
$
TYPE=HEADING,
LINE=2,
OBJECT=FIELD,
ITEM=1,
SIZE=12,
WIDTH=1.25,
$
TYPE=HEADING,
LINE=2,
OBJECT=FIELD,
ITEM=2,
SIZE=12,
WIDTH=1.25,
$
-*TYPE=HEADING,
-* IMAGE=IBFS:/WFC/Repository/Public/down_white_triangle.png,
-* POSITION=(0.250000 0.000000),
-*$
TYPE=HEADING,
IMAGE=(IMG_LOC),
POSITION=(0.250000 0.000000),
$
ENDSTYLE
END
-RUN
This message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Just a throw-away comment, but I hope you've tried using your URL(s) in an Edge browser to test? e.g. put file:\\server\folder\img\up_white_triangle.png in the MS Edge browser address bar to try it out?
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, 2004
Don't use file:// URL's for items that need to be accessed from outside your server.
Browsers from outside your intranet should never have direct access to your server file systems (and clearly they don't, considering they can't access your images). Otherwise you would be having a gigantic security hole.
Those clients need to go through the web-server for those resources, so that they have read-only access to only what you publish. And thus you need to use http:// (or https://) URL's.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
I do agree with you Wep but I can't get it to work even with all sample that I found. So, I'm probably doing something wrong somewhere but can't figure. As I mentioned, I already have my BIP accessed thru a HTTPS url, only the images are not displayed.
Can you provide me with a code sample ?
Thanks in advance
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Assuming you have a webserver that those images are accessible to under some webroot virtual folder:
IMG_LOC /A150 = IF COUNTRY EQ 'ENGLAND' THEN '<IMG SRC="https://webserver/img/up_white_triangle.png" style="border-style: none;" alt="">'
ELSE IF COUNTRY EQ 'JAPAN' THEN '<IMG SRC="https://webserver/img/down_white_triangle.png" style="border-style: none;" alt="">'
ELSE '<IMG SRC="https://webserver/img/white_dash.png" style="border-style: none;" alt="">';
Here I assume that the images live under a directory img in your webroot. Added benefit: non-Microsoft browsers will also be able to display them.
Perhaps you can also reference the images using an IBFS:// URL, like in your commented code, but that would have to be translated (bij WF) before being sent to the web-browsers. That's not something we use, so I'm not much help there I'm afraid.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
As for the IBFS way, as I mentioned, the problem I have is that it can only be used as a header image not an icon placed on a specific line at a specific position which I need. Need to test if with the webserver way I can position the image where I want.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Little update. The below does work with IE, Edge, Chrome, Firefox but when the image/icon is a column NOT as positioned in the header
DEFINE FILE CAR
-*-* Working as expected in IE : displaying image as icon in header. But not displayed from external access execution or using MS Edge, Chrome, FF
-*IMG_LOC /A150 = IF COUNTRY EQ 'ENGLAND' THEN '<IMG SRC="file:\\server\folder\img\up_white_triangle.png" style="border-style: none;" alt="">'
-* ELSE IF COUNTRY EQ 'JAPAN' THEN '<IMG SRC="file:\\server\folder\img\down_white_triangle.png" style="border-style: none;" alt="">'
-* ELSE '<IMG SRC="file:\\server\folder\img\white_dash.png" style="border-style: none;" alt="">';
-* Working with every browser but need to be a column (data). CANNOT be used as field in the header
IMG_LOC /A150 = IF COUNTRY EQ 'ENGLAND' THEN 'up_white_triangle.png'
ELSE IF COUNTRY EQ 'JAPAN' THEN 'down_white_triangle.png'
ELSE 'white_dash.png';
END
TABLE FILE CAR
SUM COMPUTE AMTX /A9V = FPRINT(RETAIL_COST, 'D7', 'A9V'); NOPRINT
IMG_LOC AS ''
BY COUNTRY NOPRINT
ON COUNTRY PAGE-BREAK
HEADING
"KPI Text"
"<AMTX<IMG_LOC"
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
SQUEEZE=ON,
LEFTMARGIN=0.0,
RIGHTMARGIN=0.0,
TOPMARGIN=0.0,
BOTTOMMARGIN=0.0,
STYLE=BOLD,
COLOR=WHITE,
PAGECOLOR=RGB(8 97 74),
$
TYPE=REPORT,
BORDER=OFF,
JUSTIFY=CENTER,
$
TYPE=HEADING,
LINE=1,
OBJECT=TEXT,
ITEM=1,
SIZE=14,
WIDTH=2.5,
$
TYPE=HEADING,
LINE=2,
OBJECT=FIELD,
ITEM=1,
SIZE=12,
WIDTH=1.25,
$
TYPE=HEADING,
LINE=2,
OBJECT=FIELD,
ITEM=2,
SIZE=12,
WIDTH=1.25,
$
TYPE=DATA,
COLUMN=IMG_LOC,
IMAGE=(IMG_LOC),
SIZE=(0.10 0.10),
PRESERVERATIO=ON,
$
ENDSTYLE
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013