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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include file to show two graphs in one page

Status
Not open for further replies.

H1004

MIS
Oct 28, 2003
136
US
I currently have WebFocus version 4:36, and I want to be able to incorporate two graphs into one page. I tried the following code, but it is giving me error message. And both file work okay independently; however, when I do include, it doesn't work.

Here are my codes:

SET GRAPHEDIT = OFF
GRAPH FILE ALLWO
HEADING
"OVERALL WORKLOAD"
SUM
CNT.WR_NO AS 'WORKLOAD STATUS'
BY STATUS
ON GRAPH SET LOOKGRAPH PIE
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 HAXIS 600
END

-INCLUDE TYPEOVERALL.FEX

This is the error message that I get:

"this run has expired
please rerun from the tool that created the run"

As well as this:

"there was a error running 'app/schedtsk.fex' this error has to to with the file 'typeoverall.fex' it may be missing the internal errorcode was '1023'"

Thank you,
h1004

 
hi,
I'm not sure if I'm understanding your problem properly, if you want to display two graphs on one page, the easiest way to do it is like this:

GRAPH FILE FILE1
SUM
CNT.FIELD1
BY FIELD2
ON TABLE HOLD AS GRP1 FORMAT HTML
END
-RUN
GRAPH FILE FILE2
SUM
CNT.FIELD3
BY FIELD4
ON TABLE HOLD AS GRP2 FORMAT HTML
END
-RUN
-HTMLFORM BEGIN
!IBI.FIL.GRP1;
!IBI.FIL.GRP2;
-HTMLFORM END

however if your problem is that you cannot use the -INCLUDE command, I also use 436, and the fexes are limited to 8 character names, could it be your fex name is too long? Try renaming it to something 8 chars or less and try again.

Tewy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top