Focal Point
Graph Hold File and PDF Ouput

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

March 04, 2008, 03:07 PM
Jim Fernandez
Graph Hold File and PDF Ouput
Hi all
I've read through what seems like a hundred posts on this age old problem, but can't seenmto quite get it to work across all my environments.

My end goal is to be able to email via Report Caster a compound PDF report containing a graph and table. I'm running into varying combinations of FOC3230, FOC3251, and FOC3202 errors when following the examples posted on this forum and without even including Report Caster into the mix.

My code (pardon the commented lines - I've been trying lots of different things):
-* File graphtest.fex
-*SET GRAPHSERVURL=https://webfocusdev.sandia.gov/ibi_apps/IBIGraphServlet
-*SET TEMPERASE = OFF

GRAPH FILE CAR
SUM SALES
BY COUNTRY
-*ON GRAPH HOLD AS MYGRAPH FORMAT HTMTABLE
ON GRAPH HOLD AS MYGRAPH FORMAT GIF
-*ON GRAPH PCHOLD FORMAT PNG
END
-RUN

-*GOTO SKIPTABLE

TABLE FILE CAR
PRINT CAR MODEL
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE HOLD AS MYTABLE FORMAT HTMTABLE
HEADING
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
	LEFTMARGIN=1.0, $

TYPE=HEADING, SIZE=250, $
TYPE=REPORT, IMAGE=MYGRAPH.GIF, POSITION=(0.5 0), SIZE=(8 4), $
TYPE=REPORT, COLUMN=CAR, BACKCOLOR='LIGHT BLUE', $
ENDSTYLE
END
-RUN


This will work in my local environment, but when run in development (Unix), I'll get a FOC3230 when trying to create the gif hold file, even though the server reports "FILE MYGRAPH.GIF SAVED TO /usr/local/webfocus/dev2/ibi/srv71/wfs/edatemp/ts0".

You'll see I've commented out my GRAPHSERVURL line, but that's because it's already resolved somehow and displayed in my output as "SET GRAPHSERVURL=https://webfocusdev.sandia.gov:443/ibi_apps/IBIGraphServlet"

Yes, we are running SSL and I've tried changing the IBI_USE_JSCOM3 setting to Yes with no success.

Any thoughts?

-Jim


WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
March 04, 2008, 05:53 PM
GinnyJakes
I'm running on AIX and your version did not run. I changed from gif to svg and it worked.
 GRAPH FILE CAR
SUM SALES
BY COUNTRY
-*ON GRAPH HOLD AS MYGRAPH FORMAT HTMTABLE
ON GRAPH HOLD AS MYGRAPH FORMAT SVG
-*ON GRAPH PCHOLD FORMAT PNG
END
-RUN

-*GOTO SKIPTABLE

TABLE FILE CAR
PRINT CAR MODEL
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE HOLD AS MYTABLE FORMAT HTMTABLE
HEADING
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
	LEFTMARGIN=1.0, $

TYPE=HEADING, SIZE=250, $
TYPE=REPORT, IMAGE=MYGRAPH.SVG, POSITION=(0.5 0), SIZE=(8 4), $
TYPE=REPORT, COLUMN=CAR, BACKCOLOR='LIGHT BLUE', $
ENDSTYLE
END
 



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
March 04, 2008, 06:12 PM
Darin Lee
I ran into a similar issue using format GIF. Changed mine to JPEG and fixed the problem (SVG format gave me some undesirable changes to the graph layout, labels, spacing, etc. for this particular report)


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
March 05, 2008, 02:00 PM
Jim Fernandez
Using either SVG or JPG outputs I still get the same error:
0 ERROR AT OR NEAR LINE     30  IN PROCEDURE ADHOCRQ FOCEXEC *
 (FOC3251) IMAGE FILE UNREADABLE OR INVALID: MYGRAPH (RC=1)
 (FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE 3: IMAGE=MYGRAPH.JPG


Ginny/Darin:
Are either of you using SSL and IBI_USE_JSCOM3 = No?


WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
March 05, 2008, 02:17 PM
Darin Lee
we do not use SSL and we have IBI_USE_JSCOM3=Yes
One thing to note - simply changing the value of IBI_USE_JSCOM3 will not make any difference if your server does not know where to find Java. There is a lot more to it than changing the NO to YES.

I don't know if you have perused the "Appendix B: Additional Graph Configuration Options" of the installation manual. This covers all aspects of what you are trying to do with holding graphs along with instructions for enabling the JSCOM3. If not, that's your next step.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
March 05, 2008, 06:54 PM
Jim Fernandez
quote:
Appendix B: Additional Graph Configuration Options

Which manual is this appendix in? I'm not seeing it in my "Creating Reports..." or "Developing Reporting..." manuals.
Nevermind. I now see it in the WF and RC Installation manual.

thanks

This message has been edited. Last edited by: Jim Fernandez,


WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2