Focal Point
[SOLVED] Reading parameters in URL from FEX

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

May 24, 2011, 06:37 PM
DD
[SOLVED] Reading parameters in URL from FEX
Hi,
We are calling our Fex from the Sef service Application URL by passing all IBI_MRdomain, Fex etc. The self service app is also passing another parameter like &P_REPORT_ID in the url.
Is there any way to read that value into the FEX?? Below is the example Url:
http://www.abc.com/ibi_apps/WF...D=5073&TARGET=_blank

Thanks,
DD

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


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
May 25, 2011, 02:12 AM
DD
Resolved


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
May 26, 2011, 06:30 PM
Waz
Could you poast your solution, as it may help others.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 26, 2011, 10:55 PM
Francis Mariani
My thoughts exactly.


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 27, 2011, 02:54 AM
FrankDutch
what is sef survice BTW?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

May 27, 2011, 07:56 AM
ABT
Unless I misunderstand, the receiving fex just uses the variable as written.

Below is something similar I did (again, I may misunderstand the question).

My URL link:
http://server:8080/ibi_apps/WF...xxxx.com/my_app_dir/

ISLogit.fex:
-* CLICKWRAPPER
-* Used for external URLs that do not have the built in logging via the Report Library Code.
-***********************************************************************
-SET &PGMNAME = &REPORTID;
-SET &RPTNAME = &REPORTID;
-***********************************************
-SET &USERID = UPCASE(25,&RUNUSERID,&RUNUSERID);
-SET &GROUPID = &GROUPID;
-SET &REPORTID = &PGMNAME;
-SET &UNIQUEID = '';
-***********************************************
-MRNOEDIT -INCLUDE RUNEVENT
-***********************************************

SET EMPTYREPORT = ON
-HTMLFORM BEGIN
<html>
  <head>
    <title>You got logged!</title>
    <meta HTTP-EQUIV="REFRESH" content="0; url=&URLDEST" />
  </head>
  <body>
    !IBI.FIL.REPORT;
  </body>
</html>
-HTMLFORM END


In my case, &URLDEST is "just used" in the receiving fex. You could code some &DEFAULTs to make it a little more bullet proof, but it is what it is.


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro