Focal Point
[SOLVED] Banded not working with over compute

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

September 18, 2019, 09:14 AM
sherrihe
[SOLVED] Banded not working with over compute
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET SQUEEZE=ON
-DEFAULTH &WF_HTMLENCODE=ON;
SET HTMLENCODE=&WF_HTMLENCODE

SET HTMLCSS=ON
-DEFAULTH &WF_EMPTYREPORT=ON;
SET EMPTYREPORT=&WF_EMPTYREPORT

-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';

TABLE FILE ibisamp/ggsales
SUM
COMPUTE SALES01.BUDDOLLARS AS 'Budget Dollars'
OVER COMPUTE SALES01.DOLLARS AS 'Sale Dollars'
ACROSS GGSALES.SALES01.REGION AS ''
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
TYPE=DATA, BACKCOLOR=(RGB(255 255 255) RGB(192 192 192)), $
ENDSTYLE
END

-RUN

This message has been edited. Last edited by: FP Mod Chuck,


8201
September 18, 2019, 09:24 AM
BabakNYC
https://webfocusinfocenter.inf...29_ReportData242.htm

According to the doc: Alternating backcolors (banded) can be specified for the background of the data lines in a report. These alternating colors are not supported for stacked columns (OVER, FOLD-LINE).


WebFOCUS 8206, Unix, Windows
September 22, 2019, 02:21 PM
Danny-SRL
This does the trick:
  
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET SQUEEZE=ON
-DEFAULTH &WF_HTMLENCODE=ON;
SET HTMLENCODE=&WF_HTMLENCODE

SET HTMLCSS=ON
-DEFAULTH &WF_EMPTYREPORT=ON;
SET EMPTYREPORT=&WF_EMPTYREPORT

-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/ggsales
BY REGION
ON TABLE HOLD
END
-RUN
-SET &R=&LINES * 2;
TABLE FILE ibisamp/ggsales
SUM
COMPUTE SALES01.BUDDOLLARS AS 'Budget Dollars'
OVER 
COMPUTE SALES01.DOLLARS AS 'Sale Dollars'
ACROSS GGSALES.SALES01.REGION AS ''
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
-*TYPE=DATA, BACKCOLOR=(RGB(255 255 255) RGB(192 192 192)), $
-REPEAT #GREY FOR &G FROM 2 TO &R STEP 2;
TYPE=DATA, COLUMN=N&G, BACKCOLOR=(RGB(192 192 192)), $
-#GREY
ENDSTYLE
END



Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF