I am drawing blank here. You would think it would be Monday.
Is there a way to put a blank line before the RECOMPUTE?
Thanks for any help.
TABLE FILE CAR
PRINT *
WHERE COUNTRY EQ 'ENGLAND'
BY COUNTRY
ON COUNTRY RECOMPUTE
ON COUNTRY SKIP-LINE
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=OFF,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=8,
SQUEEZE=ON,
$
ENDSTYLE
END
This message has been edited. Last edited by: MattC,
WebFOCUS 8.1.05
July 29, 2016, 10:19 AM
BabakNYC
You don't have a stylesheet. Without a stylesheet you get a generic output without any extras. Try the same code (without the extra END) with format WP or PDF. You'll see your skip-line. Alternatively, use a stylesheet for HTML.
TABLE FILE ibisamp/car
SUM CAR.BODY.DEALER_COST
BY CAR.ORIGIN.COUNTRY SKIP-LINE
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, PAGESIZE=LEGAL, $
ENDSTYLE
END
WebFOCUS 8206, Unix, Windows
July 29, 2016, 10:31 AM
MattC
Thanks, but I am not wanting a blank line after each country. In my report, I want it laid out like this
COUNTRY COST ENGLAND 10,000 FRANCE 20,000
TOTAL 30,000
WebFOCUS 8.1.05
July 29, 2016, 10:52 AM
BabakNYC
TABLE FILE CAR
SUM RCOST
BY COUNTRY
ON TABLE SUBFOOT
" "
"TOTAL <TOT.RCOST"
END
This message has been edited. Last edited by: BabakNYC,
WebFOCUS 8206, Unix, Windows
July 29, 2016, 11:00 AM
MattC
Sorry if I am not clear. I am looking to add a blank line between the last row and the total.
WebFOCUS 8.1.05
July 29, 2016, 11:02 AM
BabakNYC
I got that after I posted my code. Try this:
TABLE FILE CAR
SUM RCOST
BY COUNTRY
ON TABLE SUBFOOT
" "
"TOTAL <TOT.RCOST"
END
WebFOCUS 8206, Unix, Windows
July 29, 2016, 11:20 AM
MattC
Thanks - that may work.
WebFOCUS 8.1.05
July 29, 2016, 11:34 AM
MartinY
And this way using WF Total feature
TABLE FILE CAR
PRINT *
BY TOTAL COMPUTE BIDON/A1 = ''; NOPRINT
BY COUNTRY
ON COUNTRY RECOMPUTE
ON BIDON SUBFOOT
""
ON TABLE COLUMN-TOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=OFF,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
-* GRID=OFF,
FONT='ARIAL',
SIZE=8,
SQUEEZE=ON,
$
ENDSTYLE
END
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
August 01, 2016, 10:08 AM
MattC
Unfortunately none of these solutions would have worked in my case. I am also doing a compound Excel report using BYTOC so I need to have my first BY field to sort and “Tab” it across multiple spreadsheet tabs. The good news is, that I used the MacGyver technique to save the day. Prior to presentation I used this technique to get my detail and total lines, then I used a newly created defined field and was able to use it in an ON FIELD SUBFOOT in my presentation.