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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.
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, SanthoshThis message has been edited. Last edited by: <Kathryn Henning>,
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
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, 2013
-*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.
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, 2013