Focal Point
[SOLVED] Across report Conditional Styling is not applied as expected

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1967050276

August 05, 2014, 10:24 AM
Santhu
[SOLVED] Across report Conditional Styling is not applied as expected
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
August 06, 2014, 01:45 AM
jvb
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.
August 06, 2014, 08:04 AM
Rifaz
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
August 06, 2014, 10:15 AM
Santhu
-* 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
August 06, 2014, 03:00 PM
Rifaz
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
August 07, 2014, 02:53 AM
Santhu
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
August 07, 2014, 03:24 AM
Alan B
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
August 07, 2014, 06:25 AM
jvb
The second post is awesome workaround...
thanks Alan B for posting this.


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.