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     Styling does not work with ACROSS OVER

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Styling does not work with ACROSS OVER
 Login/Join
 
Member
posted
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.
 
Posts: 2 | Registered: November 10, 2006Report This Post
Expert
posted Hide Post
I'm not sure what you're trying to do with the code:

SUM S1 AS ' ' OVER
R1 OVER
R2 OVER
R3 OVER
R4
ACROSS S1 NOPRINT

SUM S1 as well as an ACROSS S1?

When I try running this, I get a major WebFOCUS error - the agent crashes.

Could you please post what the report is supposed to look like (without the colouring for now)?

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
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, 2005Report This Post
Member
posted Hide Post
Smiths, thank you very much. Your response gave me an hint to do my job.
 
Posts: 2 | Registered: November 10, 2006Report 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     Styling does not work with ACROSS OVER

Copyright © 1996-2020 Information Builders