Focal Point
[CLOSED] Single Report containing data and graph emailed?

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

September 17, 2015, 08:11 AM
RobertF
[CLOSED] Single Report containing data and graph emailed?
We have used Report Caster to email reports. Is it possible to have a single WF report with both data AND a graph. We would then burst and email it thru Report Caster.

How would you get both a nicely formatted report of the data and the graph in ONE report? I can see how you can do this on a dashboard by adding each individually...but we would need a single report to email...

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8206.08
Windows, All Outputs
September 17, 2015, 09:01 AM
MartinY
A compound report could it be the solution ?


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
September 17, 2015, 11:19 AM
CoolGuy
Links of interest:

RC and Comp. Rpts.

Creating Comp. Rpts.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
September 17, 2015, 04:02 PM
GavinL
Very simple compound report:

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET EMPTYREPORT=ON


COMPOUND LAYOUT PCHOLD FORMAT AHTML
SECTION=Section_1, LAYOUT=ON, PAGESIZE=E, ORIENTATION=PORTRAIT, SHOW_GLOBALFILTER=OFF, ACTIVE_UNITS=PTS, PAGECOLOR=RGB(255 255 255), $
PAGELAYOUT=1, NAME='Page 1', TEXT='Page 1', LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=Chart_1, COMPONENT-TYPE=GRAPH, POSITION=(0.385416 0.5), DIMENSION=(15.69791 3.8125), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0', $
COMPONENT=Table_1, COMPONENT-TYPE=REPORT, POSITION=(0.427083 4.75), DIMENSION=(4.614583 5.145833), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0', $
END

SET COMPONENT=Chart_1
-*component_type graph
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE ibisamp/car
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 15.69791
ON GRAPH SET VAXIS 3.8125
ON GRAPH SET UNITS INCHES
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='Chart1', PAGESIZE=E, ARGRAPHENGINE=JSCHART, $
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);

*END
ENDSTYLE
END

SET COMPONENT=Table_1
-*component_type report
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/car
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY RECOMPUTE  AS 'Subtotal:'
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL

ON TABLE RECOMPUTE 
ON TABLE SET CACHELINES 100
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 STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='Report1', SUMMARY=&WF_SUMMARY.QUOTEDSTRING, PAGESIZE=E, ARGRAPHENGINE=JSCHART, $
ENDSTYLE
END

COMPOUND END




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
September 18, 2015, 02:09 PM
RobertF
quote:
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET EMPTYREPORT=ON


COMPOUND LAYOUT PCHOLD FORMAT AHTML
SECTION=Section_1, LAYOUT=ON, PAGESIZE=E, ORIENTATION=PORTRAIT, SHOW_GLOBALFILTER=OFF, ACTIVE_UNITS=PTS, PAGECOLOR=RGB(255 255 255), $
PAGELAYOUT=1, NAME='Page 1', TEXT='Page 1', LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=Chart_1, COMPONENT-TYPE=GRAPH, POSITION=(0.385416 0.5), DIMENSION=(15.69791 3.8125), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0', $
COMPONENT=Table_1, COMPONENT-TYPE=REPORT, POSITION=(0.427083 4.75), DIMENSION=(4.614583 5.145833), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0', $
END

SET COMPONENT=Chart_1
-*component_type graph
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE ibisamp/car
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 15.69791
ON GRAPH SET VAXIS 3.8125
ON GRAPH SET UNITS INCHES
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='Chart1', PAGESIZE=E, ARGRAPHENGINE=JSCHART, $
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);

*END
ENDSTYLE
END

SET COMPONENT=Table_1
-*component_type report
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/car
SUM CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY RECOMPUTE AS 'Subtotal:'
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL

ON TABLE RECOMPUTE
ON TABLE SET CACHELINES 100
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 STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='Report1', SUMMARY=&WF_SUMMARY.QUOTEDSTRING, PAGESIZE=E, ARGRAPHENGINE=JSCHART, $
ENDSTYLE
END

COMPOUND END

I will try this...


WebFOCUS 8206.08
Windows, All Outputs
September 18, 2015, 03:46 PM
RobertF
this is all rather interesting but how would Report Caster burst and email such a report?

Right now we have a PDF, the first column is hidden but contains the employee ID. Report Caster bursts and emails based on this column.
I'd like to add a graph to the report following the data...but still have it bursted and emailed.

However the methodolgy shown in this thread, if I understand it correctly is really combining two separate reports into a PDF. Could Report Caster still burst and email it? In fact can Report caster even burst and email a graph? I am usnsure where the burst value would be held...


WebFOCUS 8206.08
Windows, All Outputs
September 20, 2015, 02:37 AM
Rifaz
Somewhere I had a feeling of gone over through the following lines, "when using burst options, Report burst based on 1st BY field and graph on 2nd BY field".


-Rifaz

WebFOCUS 7.7.x and 8.x
September 21, 2015, 11:44 AM
RobertF
but is it possible to combine reprots and have Report Caster somehow burst?


WebFOCUS 8206.08
Windows, All Outputs