Focal Point
Including Webfocus generated Graphs as images in HTML pages.

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

April 14, 2008, 05:09 AM
hammo1j
Including Webfocus generated Graphs as images in HTML pages.
Hi

This was part inspired by

Display a GRAPH as report page header

https://forums.informationbuilders.com/eve/forums/a/tpc/...1057331/m/3951098972

I have an HTML page in which I have embedded images which are wf graphs generated in the same report.

Using TonyA's principle that HTML links are resolved relative to the users machine, I have to place the graphs in a location where they can be linked via a URL.

This means temp directory will not work and also my server since this is a separate machine to the wf client which is the only machine reachable by URL.

The only way I can think of doing this is

-* use MRE_User to uniquify this 
ON GRAPH PCHOLD AS GRAPHSPA_&MRE_User FORMAT PNG
...

COPY the file from the server to the client 

DOS COPY GRAPHSPA_&MRE_User.PNG \\CHAOS\WF76\IBI\APPS\USERTEMP

Now access within the webpage

-HTMLFORM BEGIN
<html>
<body>
<img>http://chaos/approot/usertemp/GRAPHSPA_&MRE_User.PNG</img>

etc (not all code shown)



I am fairly certain this will work. I just wondered if there is a neater way or how other people solve this same problem.

Regards

John



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
April 14, 2008, 05:14 AM
Alan B
John

I use:
.
ON GRAPH HOLD AS name FORMAT HTMTABLE
.
.
-HTMLFORM BEGIN
.
.
!IBI.FIL.name;
.
.



Alan.
WF 7.705/8.007
April 14, 2008, 09:24 AM
mgrackin
HAMMO1J,

As you noted, Due to the fact that your WF Client and WF Server components are on separate machines, you have to put the graph image files in a directory which the CLIENT machine can access them.

An alternative solution to do this would be to map a drive on the WF Server machine that points to the directory on the CLIENT machine. Then map an APP PATH to the directory and point the holding of files to this directory with APP HOLD.

Just a thoguht.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
April 14, 2008, 10:41 AM
hammo1j
Thank you very much for some good suggestions.

Alan B

Your method works fine but when I position my cursor over the graph it comes up with "click to activate and use this control. Subsequently it allows you to move the compenents of the graph all over the output.

Does anyone know how to turn this feature off!



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
April 14, 2008, 11:31 AM
Darin Lee
Try SET GRAPHEDIT=OFF which removes the capabilities to edit the graph after generation.


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