Focal Point
Can Not Get -Include to in Report Caster .fex
January 20, 2009, 03:21 PM
KentOCan Not Get -Include to in Report Caster .fex
I can not get the '-INCLUDE TODAY' and 'IMAGE=LOGO.gif' to pull in when I run the following .fex
DEFINE FILE INVOICE
-INCLUDE TODAYMONTH/M = INVDATE;
YEAR/YY = INVDATE;
CYEAR/YY = 2008;
PYEAR/YY = CYEAR - 1;
CMONTH/M = 12;
CYAMT/D12.2 = IF MONTH LE CMONTH
AND YEAR EQ CYEAR THEN ATOTAL ELSE 0;
PYAMT/D12.2 = IF MONTH LE CMONTH AND INVDATE LE TODAY - 365
AND YEAR EQ PYEAR THEN ATOTAL ELSE 0;
END
TABLE FILE INVOICE
HEADING CENTER
"REVENUE BY CUSTOMER"
SUM CYAMT AS '2008,Y-T-D,REVENUE'
PYAMT AS '2007,Y-T-D,REVENUE'
BY LOGACCT AS 'CODE'
ON TABLE COLUMN-TOTAL
ON TABLE SET STYLE *
TYPE=HEADING,
IMAGE=LOGO.gif, POSITION=(7.0000 0.0000), $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
'TODAY' and 'LOGO' are in the same folder that the .fex is in. I have tried putting the path in the -INCLUDE statement but it did not help. I also tried adding a '-INCLUDE :logo.gif' at the bottom.
Thanks, Kent
Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
January 20, 2009, 03:25 PM
KentOMy previous post only has the problem when run in Report Caster. Kent
Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
January 20, 2009, 03:49 PM
Francis MarianiThat folder must be in the App Path on the server - I assume you're trying to schedule a fex on the WebFOCUS server and not in your Dev Studio local environment.
"I also tried adding a '-INCLUDE :logo.gif' at the bottom" - what do you mean? That won't work at all - it's invalid syntax.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 20, 2009, 04:58 PM
KentOThe LOGO.gif file is referenced in our style sheet. We need to run it in Report Caster on the server.
The LOGO.gif is in the same folder as the .fex. The syntax for the '-INCLUDE :logo.gif' was in the Report Caster documentation. Please elaborate on what you mean by the App Path; does that mean the apps folder on the server.
Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
January 20, 2009, 05:28 PM
Francis MarianiAPP PATH is the command in Drive:\ibi\srv76\wfs\etc\edasprof.prf.
Mine looks like this:
APP PATH eqp basel bcp brp ncr fmarian ibisamp baseapp
If you have access, you can browse the file, or even better, access the APP PATH by opening the WebFOCUS Server console
http://your-server-name:8121/cgiatt.exe
and selecting Application Path from the My Console drop-down.
All my App folders are in Drive:\ibi\apps. But there are other app folders there that would not get searched by WebFOCUS because they're not in the APP PATH.
You can also issue the command
? PATH
in any FEX to see the APP PATH.
Hope this helps.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 20, 2009, 06:02 PM
GinnyJakesYou can also say:
-INCLUDE dirname/fexname
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
January 21, 2009, 08:42 AM
KentOFrancis,
Thanks for explaining this further. Now everything is working like we want.
Kent
Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
January 21, 2009, 10:29 AM
Francis MarianiKentO - how did you solve the problem? It would be good to know.
Thanks,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server