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     [SOLVED] Embedding image in a Column FORMAT HTMTABLE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Embedding image in a Column FORMAT HTMTABLE
 Login/Join
 
Platinum Member
posted
Hello,

is it possible to embed an image to a column depending on a value in the output format HTMTABLE??

Christian

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


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
<JG>
posted
Quite straight forward Christian

create a COMPUTE or DEFINE

The images should reside on the apppath

change /appname/ to the name of your app folder

The concatenated column SRC should contain the actual file name i.e. image.gif
This could come from your data or be a defined or computed column

 
TABLE FILE CAR
SUM   
     COMPUTE SRC/A25= IF DEALER_COST LE 4000 THEN 'red.gif' ELSE
                        IF DEALER_COST LE 5000 THEN 'yellow.gif' ELSE 'green.gif'; NOPRINT

     COMPUTE IMAGE/A200 = '<img src="/approot/appname/' || SRC ||'"  style="width:25px; height:25px;" >'; AS ''
     DEALER_COST
     RETAIL_COST
BY COUNTRY
BY MODEL
BY CAR
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTMTABLE
ON TABLE SET STYLE *
$

ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
!IBI.FIL.REPORT;
-HTMLFORM END
 
Report This Post
Platinum Member
posted Hide Post
Hello JG,

your solution works great!!!! we pointed a drilldown on the image, now we have a blue border around the image. how can we avoid this behavior??

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
<JG>
posted
Christian,

Basic html, add a border attribute to the style.

border:none;
 
Report This Post
Platinum Member
posted Hide Post
Perfect!!! I think in most cases a beginner like me thinks too complicated!!
Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Member
posted Hide Post
Hi JG
That's really neat!
Can I do the same into Excel and PDF?
Bob


WebFocus 7.6.11
IBM iSeries
 
Posts: 14 | Location: Leeds, England | Registered: May 16, 2005Report This Post
Member
posted Hide Post
Hi again

Looks like Susannah solved the PDF version in 2007. If you search for "images in pdf report flag" you'll find it

Just need to do Excel now!

Bob


WebFocus 7.6.11
IBM iSeries
 
Posts: 14 | Location: Leeds, England | Registered: May 16, 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     [SOLVED] Embedding image in a Column FORMAT HTMTABLE

Copyright © 1996-2020 Information Builders