Focal Point
[CLOSED] &FOCEXURL and Running Fex using a URL from a PDF report

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

April 29, 2014, 10:10 AM
FOCdeveloper
[CLOSED] &FOCEXURL and Running Fex using a URL from a PDF report
Instead of repeating fexes over domains, most commonly used routines and drill fex are kept in a common folder to maintain clean code.
Solution: Use of -MRNOEDIT to run the common code from EDASERVE and to run common drill fexes from EDASERVE , use of -SET &FOCEXURL to point URL to fex in the common code folder
PROBLEM: PDF reports headings allows user to drill to get an Excel version of the same report. ( It’s drilling with parameters to itself ) It works if all code is in the same domain, but since the common code is now on a separate location, this drill to itself does not work because of the SET &FOCEXURL pointing to different area. Users will access reports via ReportCaster Library, all these report will be in PDF format, this report and others will have a standard drill fexs that will be in the common code folder on EDASERVE and that part works.
How can I get this report to run, after it has been run in the PDF format, but now in an excel format using the same parameters .
Active Report is not available here.
I am trying to create a URL in the heading but it’s not working.. Any help would be appreciated
Thanks
CODE for displaying URL in the heading of PDF report
When I run it, gives the following error
(FOC295) A VALUE IS MISSING FOR: &IBIMR_action
-SET &PATH='http://wfserver/ibi_apps/WFServlet?';
-SET &PATH=&PATH | 'IBIMR_domain=develope/develope.htm' | '&';
-SET &PATH=&PATH | 'IBIMR_folder=#larryg908ioz' | '&';
-SET &PATH=&PATH | 'IBIMR_action=MR_RUN_FEX' | '&';
-SET &PATH=&PATH | 'IBIMR_subaction=MR_STD_REPORT' | '&';
-SET &PATH=&PATH | 'IBIMR_fex=app/fadepsm.fex';
-SET &PATHURL = ''|'Export to Excel';

This message has been edited. Last edited by: <Kathryn Henning>,


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
J
Can you post your code? You may need to pass some of your MRE parameters to the fex and rebuild the links from the data server back to the MRE in a different way.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
Francis Mariani
By the way, it's not
-SET &FOCEXURL

but
SET FOCEXURL = path


quote:

The FOCEXURL parameter runs and executes drill downs remotely. The drill down program can be on your local machine or on a remote machine.

The syntax is:

SET FOCEXURL = path

where:

path - Is the location of the WebFOCUS Servlet, CGI, or ISAPI. The default path for Servlet is /ibi_apps/WFServlet. The default for CGI is /cgi-bin/ibi_cgi/ibiweb.exe and for ISAPI is /cgi-bin/ibi_cgi/webapi.dll.



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
J
Well, he may have set &FOCEXURL as a client parameter. I use it in PDF drilldowns:
 
-SET &URL = &URL_PROTOCOL | '://' | &SERVER_NAME | &FOCEXURL | '&|IBIF_ex=employee/app/employeedetailcompound&|CLICKED_ON=&';
 

If he is building the URL that way, he can set the variable to whatever he wants


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
FOCdeveloper
Thank you J and Francis..
I worked out the issue of having;
A) drill to a fex on the Server where we keep common routines and drills AND
B) drilling to a fex in MRE (in this case on itself) from within the same FEX, by using the below code.. BUT now I have a different issue.. The report is getting run by submitting through a HTML launch page to Report Caster Job(using DTSRUN)
its losing the values for IBIMR_Folder and IBIMR_Domain after it gets to Report Caster.. It works fine when Report Caster is not in the picture...

Here is the relevant code snippets

-* B Setup FEXURL to run drill fex from a common folder on the server
-SET &FOCEXURL='/ibi_apps/WFServlet?' | '&';
-SET &FOCEXURL=&FOCEXURL | 'IBIAPP_app=commonco' | '&';
SET FOCEXURL=&FOCEXURL
-* For Drilling to MRE Folder (back to itself when running excel ver, after the PDF ver has been created )
-SET &RAND = EDIT(HHMMSS('A8'),'99$99$99');
-SET &WFSERVER = 'xxxxxxxx';
-RUN
.
.
-* MRE Drill Section
.
.
TARGET='_blank',
-* Begin drill to MRE fex
URL=http://&WFSERVER.EVAL/ibi_apps/WFServlet?(IBIF_ex='&IBIMR_fex' \
IBIMR_fex='&IBIMR_fex' IBIMR_domain='&IBIMR_domain' \
IBIMR_folder='&IBIMR_folder' IBIMR_action='MR_RUN_FEX' \
IBIMR_sub_action='MR_STD_REPORT' IBIMR_drill='RUNNID' IBIMR_random='&RAND' \
IBIMR_flags='') \
-* End drill to MRE fex
LOCPARAM=&LOCPARAM.QUOTEDSTRING \
.
.
-* Server CommonCode Drill Section
.
.
STYLE=UNDERLINE,
FOCEXEC=XXXX_DRILL( \
HOLD_RAN='&HOLD_RAN' \
PAR_LOCATION6=FAM_LOCATION6 \
PAR_CLASS=FAM_CLASS \
.
.

Thanks


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7