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.
Is there a method of applying multiple conditions to the traffic light formatting rules? For example, i want to highlight a cell if it satisfies RULE1 (X>10) AND RULE2(Y<10).This message has been edited. Last edited by: <Kathryn Henning>,
ENGINE INT CACHE SET ON
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
DEFINE FILE ibisamp/car
ISRED/I1 = IF SALES GT 0 AND SALES LT 8000 THEN 1 ELSE 0;
ISGREEN/I1 = IF SALES GT 8000 THEN 1 ELSE 0;
END
TABLE FILE ibisamp/car
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY ISRED NOPRINT
BY ISGREEN NOPRINT
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 CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
DEFMACRO=Condition_1, MACTYPE=RULE, WHEN=ISRED EQ 1, $
DEFMACRO=Condition_2, MACTYPE=RULE, WHEN=ISGREEN EQ 1, $
TYPE=REPORT, TITLETEXT='WebFOCUS Report', SUMMARY='Summary', $
TYPE=DATA, COLUMN=SALES, MACRO=Condition_1, FONT='Trebuchet MS', BACKCOLOR=RGB(255 0 0), $
TYPE=DATA, COLUMN=SALES, MACRO=Condition_2, FONT='Trebuchet MS', BACKCOLOR=RGB(0 255 0), $
ENDSTYLE
END
-RUN
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
I've just schooled on why use defmacro over WHEN within the TYPE.
If you have multiple columns that you need the same condition, then using a macro there is only one line to change instead of all the columns that are affected.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server