Focal Point
[SOLVED] HTML and blank graph

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

October 19, 2010, 04:50 AM
MrM
[SOLVED] HTML and blank graph
A colleague of mine has a problem, he's trying to display a report and a graph in a single page but only the report is shown.
For the graph the only thing that is shown is the number of selected rows.
Another colleague same fex but than only the graph is shown. I see both of them.
I have no idea where to look for this problem.

We use IE 8 and WebFocus 7701.

This message has been edited. Last edited by: Kerry,
October 19, 2010, 08:24 AM
Prarie
Please post your code. Make sure you put in the code tags in red which can be found on the bar above the message line when posting.
October 19, 2010, 04:39 PM
Waz
Ditto with Prarie.

You must understand we need more information or we will only be giving you guesses on what to do.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 20, 2010, 05:06 AM
MrM
Th e code is :

 

-* File tworpt.fex
TABLE FILE CAR
PRINT 
     'CAR.BODY.DEALER_COST'
     'CAR.BODY.RETAIL_COST'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.COMP.CAR'
BY 'CAR.CARREC.MODEL'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END
GRAPH FILE CAR
SUM CNT.CAR.COMP.CAR 
ACROSS CAR.ORIGIN.COUNTRY 
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
$
ENDSTYLE
END


 

October 20, 2010, 07:37 AM
Danny-SRL
It seems to me that if you want to display a report and a graph, you should use the COMPOUND option.

Save the report .fex in one file (e.g. MrM1), the graph .fex in another (e.g. MrM2), then create your main .fex using COMPOUND and reference the two fexes.

  
-* File MrM.fex
-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter,  $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.556 0.556), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 7.361in; HEIGHT: 3.125in; OVERFLOW: auto; TOP: 0.556in; LEFT: 0.556in', $
COMPONENT='graph1', TEXT='graph1', TOC-LEVEL=2, POSITION=(0.556 4.028), DIMENSION=(7.431 3.266), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 7.431in; HEIGHT: 3.266in; TOP: 4.028in; LEFT: 0.556in', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE MrM1.fex
SET COMPONENT='graph1'
-*component_type graph
-INCLUDE MrM2
TABLE FILE SYSCOLUM
" "
SUM TBNAME NOPRINT
ON TABLE SET PAGE-NUM NOLEAD
IF READLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
type=HEADING, IMAGE=MRMG.SVG, position=(0 0), $
TYPE=REPORT,PAGE-LOCATION=OFF,$
END
COMPOUND END




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

October 21, 2010, 12:39 AM
MrM
Daniel thanks for your command but as i said earlier it works fine on mine pc in html.