Focal Point
[SOLVED] setPlaceResize() giving error

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

June 24, 2015, 01:32 AM
spunkkaran
[SOLVED] setPlaceResize() giving error
Hello All,

In one of the line graph i am getting "Possible Error On: setPlaceResize()". This occurs when the report is run for the very first time. I am not sure what is wrong with the code. I tried commenting/UN-commenting but nothing worked for me. Below is the styling i used.

ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VAXIS &GRA_HI
ON GRAPH SET HAXIS &GRA_WI
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH PCHOLD FORMAT &WFFMT
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,2);
setAxisAssignment(1,0);
setAxisAssignment(2,0);
setAxisAssignment(3,0);
setAxisAssignment(4,0);
setAxisAssignment(5,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);

setFillColor(getSeries(0),new Color(#000066));
setFillColor(getSeries(1),new Color(#000000));
setFillColor(getSeries(2),new Color(#0099CC));
setFillColor(getSeries(3),new Color(#CC0000));
setFillColor(getSeries(4),new Color(#006600));
setFillColor(getSeries(5),new Color(#F2B200));

-*added
-*
setBorderColor(getY1MajorGrid(),new Color(192,192,192));
setFillColor(getY1MajorGrid(),new Color(192,192,192));
setGridStyle(getY1MajorGrid(),0);
setBorderColor(getY2MajorGrid(),new Color(192,192,192));
setFillColor(getY2MajorGrid(),new Color(192,192,192));
setGridStyle(getY2MajorGrid(),0);
setBorderColor(getO1MajorGrid(),new Color(192,192,192));
setFillColor(getO1MajorGrid(),new Color(192,192,192));
setGridStyle(getO1MajorGrid(),0);
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),8);
-* kc : to remove markers from line graph
-*setMarkerShape(getSeries(0),1);
-*setMarkerShape(getSeries(1),1);
-*setMarkerShape(getSeries(2),1);
-*setMarkerShape(getSeries(3),1);
-*setMarkerShape(getSeries(4),1);
-*setMarkerShape(getSeries(5),1);
-*
setMarkerSize(getSeries(0),0);
setMarkerSize(getSeries(1),0);
setMarkerSize(getSeries(2),0);
setMarkerSize(getSeries(3),0);
setMarkerSize(getSeries(4),0);
setMarkerSize(getSeries(5),0);
-*kc : to set the rectangular border and number of legends per line
setTransparentBorderColor(getLegendArea(),false);
setLegendMarkersPerRow(3);
-*

-*
setFontSizeAbsolute(getO1Label(), true);
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 8);
setPlaceResize(getLegendText(), 0);

-*Setting Current date reference line
setReferenceLine(getO1Axis(),0,1);
setLineWidth(getReferenceLine(getO1Axis(),0),3);
setFillColor(getReferenceLine(getO1Axis(),0),new Color(153,153,153));
setBorderColor(getReferenceLineO1(0),new Color(153,153,153));
setTextString(getReferenceLineTextO1(0),"Current Week");
setDisplay(getReferenceLineTextO1(0),true);
setReferenceTextPosition(getReferenceLineTextO1(0),4);
setReferenceLineValueO1(0,&ROW_INDEX);
  


did anyone get the same error while working on line graph?

If anyone can help, I would really appreciate.

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


Webfocus 7.7
June 24, 2015, 06:33 AM
<nick z>
Hi,
Add these 2 lines to your Graph API code:
setReportParsingErrors(false);
setSelectionEnableMove(false);

Thanks.
Nick.
August 19, 2016, 05:18 AM
spunkkaran
Thank you it worked.

Sorry for super late reply.. I was going through my posts and found out i never replied.


Webfocus 7.7