Focal Point
[SOLVED] Graphs and setTemplateFile

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

November 22, 2010, 11:47 AM
Wep5622
[SOLVED] Graphs and setTemplateFile
Hello all,

What's the trick to make WebFOCUS find a custom graph template file?

I tried the below:
GRAPH FILE CAR
-* Created by Advanced Graph Assistant
PRINT LENGTH
BY WIDTH
ON GRAPH PCHOLD FORMAT PNG
-*ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(true);
setTemplateFile("/General/my_graph_template.txt");
ENDSTYLE
END


But I get an error:
quote:

Possible Error on: setTemplateFile("/General/my_graph_template.txt");


I can retrieve the file by it's URL just fine at http://localhost/General/my_graph_template.txt

What's wrong with my path?

I don't expect anything to be wrong with the template itself, it's just a copy of IBIDefault.txt with some colours changed and a slightly different order of commands.

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


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
November 23, 2010, 05:05 AM
Wep5622
I figured it out - just use -INCLUDE of course!

Advanced Graph editor won't be able to open such graphs anymore of course (booh!), but that doesn't matter much if we apply the styling afterwards.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :