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     [SOLVED] Across report Conditional Styling is not applied as expected

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Across report Conditional Styling is not applied as expected
 Login/Join
 
Gold member
posted
Hi All,

we have an issue with Across Value conditional Styling. Below is the code we are using
TYPE=ACROSSVALUE, BORDER-BOTTOM=LIGHT, BORDER-TOP=LIGHT, BORDER-COLOR=BLACK, BACKCOLOR=BLUE, WHEN=Compute_column EQ 1, $

This Code is not working.
FYI. we are using 7.7.03 version

Regards,
Santhosh

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.0.7 App Studio
 
Posts: 67 | Registered: September 26, 2008Report This Post
Gold member
posted Hide Post
try following code if it meets your requirement,
if not then post some sample code using car file or so ..
DEFINE FILE CAR
COMPUTE_COLUMN/D3= IF DEALER_COST GT 20000 THEN 1 ELSE 2;
END
TABLE FILE CAR
SUM DEALER_COST AS ''
BY CAR AS ''
BY COMPUTE_COLUMN
ACROSS COUNTRY AS ''
ON TABLE SET STYLE *
TYPE=DATA, BORDER-BOTTOM=LIGHT, BORDER-TOP=LIGHT, BORDER-COLOR=BLACK, BACKCOLOR=BLUE, WHEN=COMPUTE_COLUMN EQ 1, $
ENDSTYLE
END


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
 
Posts: 82 | Registered: January 06, 2014Report This Post
Guru
posted Hide Post
Hi Santhu,

If you have multiple ACROSS fields, use ACROSS identifier to identify your values.

TABLE FILE CAR
SUM SALES 
ACROSS COUNTRY 
ACROSS CAR AS ''
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, ACROSS=COUNTRY, BORDER-BOTTOM=LIGHT, BORDER-TOP=LIGHT, BORDER-COLOR=BLACK,BACKCOLOR=BLUE, WHEN=COUNTRY EQ 'ITALY',$ 
TYPE=ACROSSVALUE, ACROSS=CAR, BACKCOLOR=RED, WHEN=CAR EQ 'BMW',$ 
ENDSTYLE
END 


Post you fex BTW, if it won't help.


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Gold member
posted Hide Post
-* File sv_test.fex

-*First Code
DEFINE FILE CAR
COMPUTE_COUNTRY/D3= IF COUNTRY EQ 'JAPAN' THEN 1 ELSE 2;
END
TABLE FILE CAR
SUM DEALER_COST AS ''
BY CAR AS ''
BY COMPUTE_COUNTRY
ACROSS COUNTRY AS ''
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, BORDER-BOTTOM=LIGHT, BORDER-TOP=LIGHT, BORDER-COLOR=BLACK, BACKCOLOR=YELLOW, $
ENDSTYLE
END

-*Second Code - I have applied conditional styling to Japan country alone but yelow color is not applied here.
-*But in the above code we are able to see the yellow color applied to report.

DEFINE FILE CAR
COMPUTE_COUNTRY/D3= IF COUNTRY EQ 'JAPAN' THEN 1 ELSE 2;
END
TABLE FILE CAR
SUM DEALER_COST AS ''
BY CAR AS ''
BY COMPUTE_COUNTRY
ACROSS COUNTRY AS ''
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, BORDER-BOTTOM=LIGHT, BORDER-TOP=LIGHT, BORDER-COLOR=BLACK, BACKCOLOR=YELLOW, WHEN=COMPUTE_COUNTRY EQ 1, $
ENDSTYLE
END

Please execute the below code and understand my issue.


WebFOCUS 8.0.0.7 App Studio
 
Posts: 67 | Registered: September 26, 2008Report This Post
Guru
posted Hide Post
DEFINE FILE CAR
COMPUTE_COUNTRY/D3= IF COUNTRY EQ 'JAPAN' THEN 1 ELSE 2;
END
TABLE FILE CAR
SUM DEALER_COST AS ''
BY CAR AS ''
ACROSS COMPUTE_COUNTRY NOPRINT
ACROSS COUNTRY AS ''
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, ACROSS=COUNTRY,BORDER-BOTTOM=LIGHT, BORDER-TOP=LIGHT, BORDER-COLOR=BLACK, BACKCOLOR=YELLOW, WHEN=COMPUTE_COUNTRY EQ 1, $
ENDSTYLE
END


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Gold member
posted Hide Post
The code is not working as i am in 7.7.03 version, i need someone from IBI team/Product development team and say that we have a bug in this version.

Regards,
Santhosh


WebFOCUS 8.0.0.7 App Studio
 
Posts: 67 | Registered: September 26, 2008Report This Post
Virtuoso
posted Hide Post
This link and this link should tell you what you need to know, which is that it is not a bug, and there is an approach to get what you want.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
The second post is awesome workaround...
thanks Alan B for posting this.


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
 
Posts: 82 | Registered: January 06, 2014Report 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     [SOLVED] Across report Conditional Styling is not applied as expected

Copyright © 1996-2020 Information Builders