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     Greater than AND Less than [RESOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Greater than AND Less than [RESOLVED]
 Login/Join
 
Member
posted
Im using infoassist 7.7.02 and I have a specific request to generate a report that has color coding for different values.

My problem is in the traffic light conditions there is no way to do Greater than AND Less than.

I also tried coding it that way with Variables and it wont even run that way. The variable gives me an error.

Any thoughts?

Thanks!

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


Webfocus, Windows 7
 
Posts: 2 | Registered: February 28, 2012Report This Post
Member
posted Hide Post
Infoassist can do a 3 color stoplight effect by defining the largest greater than value first. So if it were less than 4=yellow 5-8=green and greater than 8=red you would define the <=4[yellow) then the >8(red) then the >4 and <8[green) but you leave out the and<8 part since that is already covered by another condition. Below is the code I used.
 TABLE FILE CAR
SUM CAR.BODY.SEATS
BY CAR.COMP.CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/CFG/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
DEFMACRO=Condition_1, COLOR=RGB(255 255 0), WHEN=N2 LE 4, $
DEFMACRO=Condition_3, COLOR=RGB(255 0 0), WHEN=N2 GT 8, $
DEFMACRO=Condition_2, COLOR=RGB(0 255 0), WHEN=N2 GT 4, $
TYPE=DATA, COLUMN=N2, MACRO=Condition_1, $
TYPE=DATA, COLUMN=N2, MACRO=Condition_3, $
TYPE=DATA, COLUMN=N2, MACRO=Condition_2, $
ENDSTYLE
END
 


Also if the values were limited you could say =5 =6 =7 =8 in 4 seperate stoplight functions with all of them being green.


WebFOCUS 8.1.05
Windows-iSeries DB2, All Outputs
HTML
 
Posts: 29 | Location: Cincinnati, OH | Registered: August 23, 2011Report This Post
Member
posted Hide Post
Todd I forgot to respond. That did work. Thank you so much for the help. Smiler


Webfocus, Windows 7
 
Posts: 2 | Registered: February 28, 2012Report This Post
Member
posted Hide Post
No problem always willing to help if I can.


WebFOCUS 8.1.05
Windows-iSeries DB2, All Outputs
HTML
 
Posts: 29 | Location: Cincinnati, OH | Registered: August 23, 2011Report 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     Greater than AND Less than [RESOLVED]

Copyright © 1996-2020 Information Builders