Focal Point
Greater than AND Less than [RESOLVED]

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5897032716

February 28, 2012, 01:27 PM
Qeldroma
Greater than AND Less than [RESOLVED]
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
February 28, 2012, 05:07 PM
Todd_Wallace
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
March 02, 2012, 03:05 PM
Qeldroma
Todd I forgot to respond. That did work. Thank you so much for the help. Smiler


Webfocus, Windows 7
March 02, 2012, 03:31 PM
Todd_Wallace
No problem always willing to help if I can.


WebFOCUS 8.1.05
Windows-iSeries DB2, All Outputs
HTML