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] Error 'Possible Erro' appears on the report in place of pie chart.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Error 'Possible Erro' appears on the report in place of pie chart.
 Login/Join
 
Member
posted
Suppose there is a pie chart image in one of my reports.During loading it should ideally show pie chart but instead it is throwing 'Possible Erro'

This message has been edited. Last edited by: Kerry,


Webfocus 7.6
Windows Nt
Excel, PDF, HTML
 
Posts: 17 | Location: Mumbai | Registered: September 11, 2008Report This Post
Expert
posted Hide Post
You are going to have to post your code.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
The Following is the code for pie chart

-INCLUDE COMMON/COMMON
-INCLUDE COMMON/CONNECTION
-INCLUDE am10040
TABLE FILE SQLOUT
PRINT
*
ON TABLE HOLD
END
-INCLUDE COMMON/NORECORDS
GRAPH FILE HOLD
PRINT AMOUNT AS ''
BY ASSET_CLASS AS ''
ON GRAPH SET LOOKGRAPH PIEMULTI
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 SET VAXIS 125
ON GRAPH SET HAXIS 125
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
-INCLUDE COMMON/COLOR
setMarkerDisplay(false);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(false);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
ENDSTYLE
END


Webfocus 7.6
Windows Nt
Excel, PDF, HTML
 
Posts: 17 | Location: Mumbai | Registered: September 11, 2008Report This Post
<JG>
posted
quote:
-INCLUDE COMMON/COLOR

There is an API coding error in the above included API calls.

You can prove this by commenting that line out of your code.
 
Report This Post
Member
posted Hide Post
If i'm commenting the line
The specified colors are getting disabled,and it is taking some default colors.


Webfocus 7.6
Windows Nt
Excel, PDF, HTML
 
Posts: 17 | Location: Mumbai | Registered: September 11, 2008Report This Post
<JG>
posted
pankaj, my point was that by commenting out the -INCLUDE is
it will prove to you where the error is.

Look at the -INCLUDE code and you will find the error.
The most common causes,
missing semi-colon,
wrong case for an API call
missing value
 
Report This Post
Member
posted Hide Post
I don't find anything missing in the Color file

The code is

setSeriesFillColor(0, new Color(51,102,204));
setSeriesFillColor(1, new Color(255,204,51));
setSeriesFillColor(2, new Color(153,153,102));
setSeriesFillColor(3, new Color(102,51,102));
setSeriesFillColor(4, new Color(102,153,0));
setSeriesFillColor(5, new Color(155,205,155));
setSeriesFillColor(6, new Color(128,64,0));
setSeriesFillColor(7, new Color(255,204,153));
setSeriesFillColor(8, new Color(128,128,128));
setSeriesFillColor(9, new Color(255,106,106));
setSeriesFillColor(10, new Color(255,204,204));
setSeriesFillColor(11, new Color(221,196,136));
setSeriesFillColor(12, new Color(128,128,225));
setSeriesFillColor(13, new Color(0,204,153));
setSeriesFillColor(14, new Color(204,153,102));
setSeriesFillColor(15, new Color(135,206,255));
setSeriesFillColor(16, new Color(152,251,152));
setSeriesFillColor(17, new Color(151,255,255));
setSeriesFillColor(18, new Color(204,102,102));
setSeriesFillColor(19, new Color(127,255,0));
setSeriesFillColor(20, new Color(51,102,153));
setSeriesFillColor(21, new Color(204,102,204));
setSeriesFillColor(22, new Color(0,204,0));
setSeriesFillColor(23, new Color(153,204,153));
setSeriesFillColor(24, new Color(102,102,0));
setSeriesFillColor(25, new Color(255,204,204));
setSeriesFillColor(26, new Color(204,0,204));
setSeriesFillColor(27, new Color(51,102,51));
setSeriesFillColor(28, new Color(204,51,102));
setSeriesFillColor(29, new Color(204,204,0));



setFillColor(getSeries(0), new Color(51,102,204));
setFillColor(getSeries(1), new Color(255,204,51));
setFillColor(getSeries(2), new Color(153,153,102));
setFillColor(getSeries(3), new Color(102,51,102));
setFillColor(getSeries(4), new Color(102,153,0));
setFillColor(getSeries(5), new Color(155,205,155));
setFillColor(getSeries(6), new Color(128,64,0));
setFillColor(getSeries(7), new Color(255,204,153));
setFillColor(getSeries(8), new Color(128,128,128));
setFillColor(getSeries(9), new Color(255,106,106));
setFillColor(getSeries(10), new Color(255,204,204));
setFillColor(getSeries(11), new Color(221,196,136));
setFillColor(getSeries(12), new Color(128,128,225));
setFillColor(getSeries(13), new Color(0,204,153));
setFillColor(getSeries(14), new Color(204,153,102));
setFillColor(getSeries(15), new Color(135,206,255));
setFillColor(getSeries(16), new Color(152,251,152));
setFillColor(getSeries(17), new Color(151,255,255));
setFillColor(getSeries(18), new Color(204,102,102));
setFillColor(getSeries(19), new Color(127,255,0));
setFillColor(getSeries(20), new Color(51,102,153));
setFillColor(getSeries(21), new Color(204,102,204));
setFillColor(getSeries(22), new Color(0,204,0));
setFillColor(getSeries(23), new Color(153,204,153));
setFillColor(getSeries(24), new Color(102,102,0));
setFillColor(getSeries(25), new Color(255,204,204));
setFillColor(getSeries(26), new Color(204,0,204));
setFillColor(getSeries(27), new Color(51,102,51));
setFillColor(getSeries(28), new Color(204,51,102));
setFillColor(getSeries(29), new Color(204,204,0));


Webfocus 7.6
Windows Nt
Excel, PDF, HTML
 
Posts: 17 | Location: Mumbai | Registered: September 11, 2008Report This Post
<JG>
posted
quote:
Webfocus 7.6

pankaj, Which version of 7.6 are you running? currently there are 8 sub releases. 0 thru 7

Your code runs without error on 7.6.7

However

setSeriesFillColor(0, new Color(204,204,0));
and
setFillColor(getSeries(0), new Color(204,204,0));

are exactly the same thing, you should use either

setSeriesFillColor(x, new Color(nnn,nnn,nnn));
OR
setFillColor(getSeries(x), new Color(nnn,nnn,nnn)

not both (the last one takes precedence)

It is possible in the 7.6 release you are using the conflicting calls may be the issue.
 
Report This Post
Member
posted Hide Post
Hi JG,

I tried with only
setFillColor(getSeries(x), new Color(nnn,nnn,nnn)
but it still gives the same error.

Regards
Pankaj


Webfocus 7.6
Windows Nt
Excel, PDF, HTML
 
Posts: 17 | Location: Mumbai | Registered: September 11, 2008Report This Post
<JG>
posted
pankaj I think that the only option that you have is to raise a case with IBI support.

As I said your code works fine with WF 7.6.7 so it looks like a bug in the release you are using.
 
Report This Post
Gold member
posted Hide Post
pankaj,

I had a similar problem a while back. Try placing this code into your graph style sheet

  setReportParsingErrors(false); 


This might take care of it.

This is the link to the original thread

https://forums.informationbuilders.com/eve/forums/a/tpc/...901033472#9901033472

As JG mentions at the end of the thread though

"If you use the advanced graph assistant to create your graphs then
this particular API call is automatically included in the generated code.

All it is doing is stopping errors in the API code from blowing java out.
It means that you still have an error in your procedure.

There are 2 reasons for this,
1) Either you have a genuine error because something is incorrectly coded.
2) Or you have called an API method that is not correctly or fully implemented
(there are several methods that do not work as documented)"

Eric


Eric Woerle
WF 7.6.7 Reportting Server
ETL 7.6.10
Dev Studio 7.6.7
 
Posts: 95 | Registered: July 31, 2007Report 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] Error 'Possible Erro' appears on the report in place of pie chart.

Copyright © 1996-2020 Information Builders