Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] setPlaceResize() giving error

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] setPlaceResize() giving error
 Login/Join
 
Member
posted
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
 
Posts: 8 | Registered: August 04, 2014Report This Post
<nick z>
posted
Hi,
Add these 2 lines to your Graph API code:
setReportParsingErrors(false);
setSelectionEnableMove(false);

Thanks.
Nick.
 
Report This Post
Member
posted Hide Post
Thank you it worked.

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


Webfocus 7.7
 
Posts: 8 | Registered: August 04, 2014Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] setPlaceResize() giving error

Copyright © 1996-2020 Information Builders