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] Traffic light condition

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Traffic light condition
 Login/Join
 
Silver Member
posted
Hello I want to implement a traffic light condition for car table.
If the car sales are higher than 3000 I want to show a red image in an column and if less than 8000 then green light.
How do I go about it using a DEFINE ??

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, all Outputs
 
Posts: 29 | Registered: August 22, 2017Report This Post
Platinum Member
posted Hide Post
use compute field with image tag,

 TABLE FILE CAR
SUM SALE
COMPUTE IMAGE/A50 = IF(SALES GT 3000) THEN '<IMG SRC="/approot/ibisamp/images/1.png">' ELSE '<IMG SRC="/approot/ibisamp/images/2.png">';
BY CAR 
END
 


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Silver Member
posted Hide Post
First thanks a lot for your suggestion!!Smiler

But is there a way to do so using DEFINE or macros since i tried that and maybe the image path is not being identified thats why its giving me an error!!

Since when i use DEFINE FILE it throws an error for parsing no matter what name I use for filename even if i use CAR

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


WebFOCUS 8
Windows, all Outputs
 
Posts: 29 | Registered: August 22, 2017Report This Post
Platinum Member
posted Hide Post
you can use same syntax in define .
quote:
/approot/ibisamp/images/1.png


in given path my file location(1.png ) is(EDASERVE)
C:\ibi\apps\ibisamp\images
So please select your path accordingly


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Silver Member
posted Hide Post
quote:
06:04 AM
Despite making changes I always get an error saying that it is an error in parsing request.
I shall send you the code maybe you can help out with the same.

DEFINE FILE CAR
SUM CAR.BODY.SALE
COMPUTE IMAGE/A50 = IF(SALES GT 3000) THEN '' ELSE '';
BY CAR.COMP.CAR
END

TABLE FILE CAR

SUM
CAR.BODY.SALES
COMPUTE IMAGE/A50 = ;

BY CAR.ORIGIN.COUNTRY

ON TABLE SUBHEAD
"Sales wise distribution chart"
ON TABLE SUBFOOT
"End of Report"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=DATA,
COLUMN=N6,
BACKCOLOR=RGB(255 255 153),
$
TYPE=REPORT,
IMAGE=tk_logoneu.jpg,
POSITION=(3.430556 0.055556),
$
ENDSTYLE
END

Thanks for helping out always Smiler


WebFOCUS 8
Windows, all Outputs
 
Posts: 29 | Registered: August 22, 2017Report This Post
Expert
posted Hide Post
quote:
DEFINE FILE CAR
SUM CAR.BODY.SALE
COMPUTE IMAGE/A50 = IF(SALES GT 3000) THEN '' ELSE '';
BY CAR.COMP.CAR
END

This implies that you do not understand coding within WebFOCUS or the constructs.

Ask your management for training - I think that you would benefit from it.

We can and will help with questions on how to achieve things but basic training is asking too much.

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
Silver Member
posted Hide Post
Thanks Tony I shall do the needful!!!


WebFOCUS 8
Windows, all Outputs
 
Posts: 29 | Registered: August 22, 2017Report 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] Traffic light condition

Copyright © 1996-2020 Information Builders