Focal Point
E-mailing Reports with drill downs in HTML Format - Problem with SET FOCEXURL=

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

May 22, 2008, 12:33 PM
Rob M.
E-mailing Reports with drill downs in HTML Format - Problem with SET FOCEXURL=
I am e-mailing reports with drill downs using report caster and I have added the following string in my procedure to qualify the URL when it goes to Outlook. But the problem is I get a report caster error that says:

Message Code Message Text

BTP1010 Starting worker thread
BTP1020 Starting task: RFM - Regional Open PO Report Summary
BTP1020 Task type: EDA RPC
BTP1020 Procedure name: pdofin/fmanagers_open_po_report_summary_total_test
BTP1020 Connecting to server BIWC01 with execution id z022292
BTP1020 Executing focexec.
BTP1020 A VALUE IS MISSING FOR: &IBIAPP_app
BTP1010 Task error: A VALUE IS MISSING FOR: &IBIAPP_app
BTP1010 No report to distribute.

The URL I am using in SET FOCEXURL= is:

SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01&IBIAPP_app=xxxxxx


Rob M.
Target Corporation

WF 7.1.4
May 22, 2008, 02:09 PM
GinnyJakes
Rob,

Your syntax is incorrect:

SET FOCEXURL=http://your-web-server/ibi_apps/WFServlet


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
May 22, 2008, 02:20 PM
Rob M.
Ginny, that doesn't work.


(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND:
fmanagers_open_po_report_summary-group


Because I am not specifying the server and the app folder it can't find the procedure.


Rob M.
Target Corporation

WF 7.1.4
May 22, 2008, 02:27 PM
GinnyJakes
Then your problem is pathing, not the FOCEXURL statement.

Try putting the IBIC_server and IBIAPP_app as variables on your drilldown syntax in your stylesheet.


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
May 22, 2008, 02:41 PM
Rob M.
quote:
Originally posted by GinnyJakes:
Then your problem is pathing, not the FOCEXURL statement.

Try putting the IBIC_server and IBIAPP_app as variables on your drilldown syntax in your stylesheet.


Still doesn't work.

BTP1020 Executing focexec.
BTP1020 BAD VALUE IN STYLESHEET FILE AT LINE
BTP1010 Task error: BAD VALUE IN STYLESHEET FILE AT LINE
BTP1010 No report to distribute.


Rob M.
Target Corporation

WF 7.1.4
May 22, 2008, 02:47 PM
Gizmo
SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01&IBIAPP_app=xxxxxx

First of all, when you are building the FOCEXURL string, you have an '&' in the line. This means that it is now looking for a variable called &IBIAPP_app. Even if you added &IBIAPP_app(pass) in the site.wfs file, this would still not work as you need the '&' as part of the URL string.

Instead, change your code to the following...
SET FOCEXURL='http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01' | '&' | 'IBIAPP_app=xxxxxx'


Another solution would be to add the application folder to the path on the server, or remove IBIAPP_app from the focexurl and add IBIAPP_app as a variable being passed by the drill down.



Windows: WF 7.6.2: SQL Server 2008 R2
May 22, 2008, 03:03 PM
Rob M.
quote:
Originally posted by Gizmo:

Instead, change your code to the following...
SET FOCEXURL='http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01' | '&' | 'IBIAPP_app=xxxxxx'


That doesn't work, get error that says "WebFOCUS was called with an invalid request. "

The URL looks like this when I do what you mentioned:
webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01'%20%7C%20'&'%20%7C%20'IBIAPP_app=xxxxxx?IBIF_ex=fmanagers_open_po_report_summary-group&CLICKED_ON=®ION=100

It is like throwing spaces in the URL.


Rob M.
Target Corporation

WF 7.1.4
May 22, 2008, 03:19 PM
Francis Mariani
SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01&IBIAPP_app=xxxxxx


To have WebFOCUS treat an embedded ampersand as such and not as a variable, use the pipe character:

SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01&|IBIAPP_app=xxxxxx


I don't know if that will solve your problem, but that is the correct method to ensure the ampersand does not mess WF up.

Meanwhile, you only require the server name if you have multiple servers defined in your WebFOCUS environment, and you only require the app name if the app folder is not part of the app path.


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
May 22, 2008, 03:36 PM
Rob M.
quote:
Originally posted by Francis Mariani:
SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01&IBIAPP_app=xxxxxx


To have WebFOCUS treat an embedded ampersand as such and not as a variable, use the pipe character:

SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet?IBIC_server=BIWC01&|IBIAPP_app=xxxxxx


I don't know if that will solve your problem, but that is the correct method to ensure the ampersand does not mess WF up.

Meanwhile, you only require the server name if you have multiple servers defined in your WebFOCUS environment, and you only require the app name if the app folder is not part of the app path.


This ALMOST worked.

The only problem left now is that it is adding a ? mark instead of the & before the fex name. It auto adds ?IBIF_ex=, but it needs to be &IBIF_ex= in order for it to work. Any Ideas on how to make it put a & and not a ?

?IBIF_ex=fmanagers_open_po_report_summary-group&CLICKED_ON=®ION=200


Rob M.
Target Corporation

WF 7.1.4
May 22, 2008, 03:49 PM
Francis Mariani
Here's a working example. As Ginny suggested, pass the server and app in variables:

SET FOCEXURL=http://webfadhsec01.xxxxxx.com/ibi_apps/WFServlet
-RUN

TABLE FILE CAR
PRINT COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, FOCEXEC=BID2 ( \
COUNTRY=COUNTRY \
IBIC_server='EDASERVE' \
IBIAPP_app='demo' \
), $
ENDSTYLE
END
-RUN



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