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     How can I display RED,GREEN Ball Images

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How can I display RED,GREEN Ball Images
 Login/Join
 
Member
posted
Hi
I am very new to webfocus and trying to display an image RED or GREEN ball depending on the field value 'Y' GREEN.
Any help is great. Thanks.


7.6.1 I believe
All formats, HTML,PDF,EXCEL
 
Posts: 14 | Registered: April 18, 2007Report This Post
Member
posted Hide Post
Try doin this....


Have a compute column like this

COMPUTE CLR/A20=IF FIELD EQ 'Y' THEN 'G'
ELSE IF FIELD EQ 'N' THEN 'R'

Then in the graph style sheet


$
TYPE=DATA,
ACROSSCOLUMN=N1(Based on the column number specified in the SUM clause),
COLOR='GREEN',
WHEN=CLR EQ 'y',
$
TYPE=DATA,
ACROSSCOLUMN=N1,
COLOR='RED'
WHEN=CLR EQ 'N',
$


Lakshmi
WF 713 WinXP/IIS/Apache Self Service
 
Posts: 27 | Registered: February 17, 2007Report This Post
Member
posted Hide Post
Thanks for the help.
I did the compute column and can change the font to Red and Green but can I put an image rather than just trying to change the color?
Thanks once again for the help. I saved the images (RED,GREEN ball) in other folder and when the STATUS ='Y' I want to show the GREEN Ball in that computed column and if it 'N' Show RED BALL image.
Is graph stylesheet some thing different which I should set this seperate.
Thanks once again
Rao
 
Posts: 14 | Registered: April 18, 2007Report This Post
Gold member
posted Hide Post
Here's a way. If this is not adequate there are other ways as well. (Of course you must have the appropriate gifs in place to set this up
*************************
DEFINE FILE CAR
R_Dot/A100='G_Dot/A100='My_Dot/A100=IF RETAIL_COST GE 8000 THEN G_Dot ELSE R_Dot;
END
TABLE FILE CAR
PRINT
COUNTRY
CAR
DEALER_COST
My_Dot
END


WF 7703M, XP/Win7, MRE, RC, BID, PMF, HTML, PDF, Excel 2000/7/10
 
Posts: 73 | Location: NY | Registered: February 06, 2007Report This Post
Gold member
posted Hide Post
HTML commented out. remove comment to use
DEFINE FILE CAR
R_Dot/A100='< !--img src="/approot/samples/g1.gif"';
G_Dot/A100='< !--img src="/approot/samples/r1.gif"';
My_Dot/A100=IF RETAIL_COST GE 8000 THEN G_Dot ELSE R_Dot;
END
TABLE FILE CAR
PRINT
COUNTRY
CAR
DEALER_COST
My_Dot
END


WF 7703M, XP/Win7, MRE, RC, BID, PMF, HTML, PDF, Excel 2000/7/10
 
Posts: 73 | Location: NY | Registered: February 06, 2007Report This Post
Member
posted Hide Post
Thanks for the help guys but I guess I need to work on my fundamentals before getting a into these things.
I tried but looks like my Define is not done well or either I am putting in worng place.
I will try tomorrow and will get back to you all. Thanks alot for your time.


7.6.1 I believe
All formats, HTML,PDF,EXCEL
 
Posts: 14 | Registered: April 18, 2007Report This Post
Member
posted Hide Post
Hi,
I could get the logic working now Smiler
Thanks a lot for the help and pointers.
Any pointers to learn Focus language?


7.6.1 I believe
All formats, HTML,PDF,EXCEL
 
Posts: 14 | Registered: April 18, 2007Report This Post
Platinum Member
posted Hide Post
I'd say go to Summit and hang out with all the FOCUS Guru's out there.

By them a drink and they'll drop you some code Smiler


Prod: WebFOCUS 7.1.6, Windows 2003

Dev: WebFOCUS 7.6.2, Windows 2003
 
Posts: 140 | Registered: May 02, 2007Report 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     How can I display RED,GREEN Ball Images

Copyright © 1996-2020 Information Builders