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.
The following is my HOLD data obtained from Oracle query with fields S1, R1, R2, R3, R4, R5. The result looks like S1 R1 R2 R3 R4 R5 1 0.0 5.0 6.0 18.0 5.2 2 2.0 3.0 5.0 9.0 7.0 3 6.0 8.0 0.0 8.0 0.0 4 3.0 0.0 8.0 9.0 6.0
I want to make red a cell across the first S1 when the value is greater than 2. Red for the second S1 when the cell value is grater than 4. Red when third row of S1 greater than 8 and red when the fourth row is greater than 12. I tried to use TYPE=DATA, COLUMN=N2, COLOR=RED, WHEN=R1 GT 2, $. This did not work. I turned the columns into rows using SUM S1 AS ' ' OVER R1 OVER R2 OVER R3 OVER R4 ACROSS S1 NOPRINT
This works for certain cells, but not for all. I need some one to help me. I am using WebFocus 5.3 report section. I want to get Red for values greater than the threshold and Green otherwise.
Looks like you want to selectively colour cells based on the row number and a value of one or more of the cells in that row.
Borrowing one of Francis' previous techniques, I wonder if you are looking for something along the lines of the following example:
DEFINE FILE CAR
CNTR/I6 WITH COUNTRY = CNTR + 1;
END
TABLE FILE CAR
PRINT
COMPUTE XCOLOR/A1 = IF (CNTR EQ 1) AND (SEATS GT 1) THEN 'Y' ELSE
IF (CNTR EQ 2) AND (SEATS GT 2) THEN 'Y' ELSE
IF (CNTR EQ 3) AND (SEATS GT 3) THEN 'Y' ELSE
IF (CNTR EQ 4) AND (SEATS GT 4) THEN 'Y' ELSE
IF (CNTR EQ 5) AND (SEATS GT 5) THEN 'Y' ELSE 'N'; NOPRINT
COUNTRY
MODEL
SEATS
BY CNTR AS '#'
ON TABLE SET STYLE *
TYPE=DATA, COLOR=RED, COLUMN=N5, WHEN=XCOLOR EQ 'Y', $
ENDSTYLE
END
Sean
------------------------------------------------------------------------ PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
Posts: 210 | Location: Ottawa | Registered: November 03, 2005