Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
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
Go
New
Search
Notify
Tools
Reply
  
[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, 2008Reply With QuoteReport 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, 2014Reply With QuoteReport 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: 405 | Location: India | Registered: June 13, 2013Reply With QuoteReport 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, 2008Reply With QuoteReport 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: 405 | Location: India | Registered: June 13, 2013Reply With QuoteReport 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, 2008Reply With QuoteReport 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, 2007Reply With QuoteReport 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, 2014Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.