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     [CLOSED] Conditional Styling on the Cell of a Matrix Report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Conditional Styling on the Cell of a Matrix Report
 Login/Join
 
Gold member
posted
I am trying to put a conditional (WHEN) on following matrix report.
Not able to figure out the 'WHEN' part.

TABLE FILE CAR
SUM SALES
ACROSS CAR
BY COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
     BORDER=LIGHT,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=DATA,
     COLUMN=C*,
     STYLE=NORMAL,
     COLOR=RED,
-* THIS IS WHERE I AM STRUGGLING WITH. Follg does not work.
     WHEN=SUM SALES GT 15000,
$
END

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


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Expert
posted Hide Post
quote:

WHEN=SUM SALES GT 15000,$

change to
WHEN=SALES GT 15000,$
Btw, did you use a gui tool to build this fex?

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
I browsed manuals and it worked after some tweaking. Now I can style cells greater than zero.

TABLE FILE CAR
SUM SALES
ACROSS HIGHEST COUNTRY
BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
     BORDER=LIGHT,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=DATA,
-*   COLUMN=C*,
     ACROSSCOLUMN=N1,
     STYLE=NORMAL,
     COLOR=RED,
-*   WHEN=SALES LT 10000,
     WHEN=N2 GT 0,
$
END


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Virtuoso
posted Hide Post
The key to your solution was to use ACROSSCOLUMN and to remove the word SUM from the WHEN clause as Susannah stated.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Gold member
posted Hide Post
Yes. Thx to susannah for the idea of removing SUM.
Why didn't C* work ?

  
TABLE FILE CAR
SUM SALES
ACROSS HIGHEST COUNTRY
BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
     BORDER=LIGHT,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=DATA,
-*   Why doesn't C* work?
-*   COLUMN=C*,
     ACROSSCOLUMN=N1,
     STYLE=NORMAL,
     COLOR=RED,
-*Remove SUM
-*   WHEN=SUM SALES GT 0,
     WHEN=SALES GT 0,
$
END


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Virtuoso
posted Hide Post
Govind,

Unfortunately I can't give you a good answer for that one as to why C* doesn't work in this situation other than to say that it is not intended to be used with matrix reports (BY/ACROSS). You would think that C* should work but obviously does not. Hence the need for using ACROSSCOLUMN.

My guess would be that C* or Cn notation is a way to reference columns in the internal matrix, not actual columns on the report. So due to the fact that the internal matrix does not contain multiple columns for a BY/ACROSS report, only the first column gets the formatting. I'm guessing on this one but I believe the actual ACROSS effect is an output thing in which FOCUS takes the columns in the internal matrix and visually maps them into a matrix for output.

I'm stretching here to explain this behavior so I may be totally off base with my reasoning.

Can anyone confirm my hypothesis?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
quote:
TABLE FILE CAR
SUM SALES
ACROSS HIGHEST COUNTRY
BY MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
BORDER=LIGHT,
FONT='ARIAL',
SIZE=8,
$
TYPE=DATA,
-* COLUMN=C*,
ACROSSCOLUMN=N1,
STYLE=NORMAL,
COLOR=RED,
-* WHEN=SALES LT 10000,
WHEN=N2 GT 0,
$
END



how can we achieve the same styling in an AHTML report? I used the above code by just replacing HTML with AHTML and it completely removed the styling.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 21 | Registered: October 20, 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     [CLOSED] Conditional Styling on the Cell of a Matrix Report

Copyright © 1996-2020 Information Builders