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.
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
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
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
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, 2003
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.