Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GRAPHEDIT

Status
Not open for further replies.

H1004

MIS
Oct 28, 2003
136
US
Last time, when I take away the SET GRAPHEDIT = OFF code off my fex, the graph print & show up just fine. But now, it's quite the opposite where it didn’t show up anything except a box with X on it. So when I put the line of code above back in my fex, then the graph shows back up. But my problem is that, I can’t print the graph in colors. When I hit print preview, it gave me the chart with white block & no label neither. Here is my script.

SET GRAPHEDIT = OFF
GRAPH FILE EXAMPLE
HEADING
" &VAR Compared to <VAR1 Average"
"&NOW"
PRINT
FIELD1 AS '% Field One'
FIELD2 AS 'Field 2'
FIELD3 AS 'Field 3'
FIELD4 AS 'Field 4'
ACROSS FIELD 4 AS ''
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHSTYLE *
set Selectionenable(5);
setLegendMarkerPosition(3);
setConnectLineMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MinorGridDisplay(true);
setSeriesType(0,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MinorGridDisplay(true);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
ENDSTYLE
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET GRID ON
-*ON GRAPH SET VAXIS 500
ON GRAPH SET HAXIS 600
END
 
There are three graphedit settings.

I beleive this is how it all goes.

OFF=The client uses a java applet on the client to create the graph.

ON=The client uses a java applet on the client to create and change the graph.

SERVER=The graph is created by a servlet on the webserver and returns a gif file for your document.

I'm making a guess here, but I don't think that printing will work when using a java applet. There fore you would need to use graphedit=server.
 
Well, I tried using = SERVER, and the graph disappear.
 
use
You should get "Error Creating Graph".

If you recieve 404 or 500 error message, your New Atlanta software or other application server may not be set up correctly.

If you do get "Error Creating Graph" you may need to add

SET GRAPHSERVURL=http://hostname/ibi_apps/IBIGraphServlet to your focexec.
 
I didn’t get any error message. It ran normally except the graph is not there.
 
In the address bar of your web browser. Be sure to change "hostname" to the name of the webserver that you are connecting to. In other words, when you are running your reports in webfocus, if the address line has " your server name would be "gizzy" not "hostname".
 
Let's see if I understand correctly. When I run the FEX, it takes me to a web browser screen, and I'll replace the address that's already in there with the address you mention above except replace it with my server name. Then I enter my criteria & parameter.

If that's the case, then i did that, and I get the same thing
 
If you are using " you should not be putting in any parameters. You would then get a page back only displaying "Error Creating Graph" (this is normal) or a page displaying a web 404 or 500 error message (this is not normal).

If you get the 404 or 500 error, you should probably talk to your webfocus administrator or call the ibi help desk.
 
Like I said, I don't receive any error message, it ran without the graph showing up. I have a feeling that it might cause by different version of the web browser.
 
If GRAPHEDIT=SERVER doesn't produce a graph, then your server isn't set up correctly for server side graphics. What version of WebFOCUS and java are you running? In a windows environment, it's just a matter of an environmental variable. On UNIX it's more complicated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top