Focal Point
How to differentiate Web FOCUS URL.

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

August 18, 2008, 09:11 AM
kunamneni
How to differentiate Web FOCUS URL.
Hi ,
While executing fex file (Right click on procedure -> Run) from Web FOCUS client. the following URL is displaying. Also the same url is populating for all the
Procedures which in Web FOCUS client.
http://deve.sam.test.com:17805/ibi_apps/WFServlet .

Could you please help me how can we differentiate URLs with respect to procure name.

Thanks in advance.
Raveendra.


WebFOCUS 7.6.4

windows
August 18, 2008, 09:19 AM
GinnyJakes
I don't think you can. When you run it that way, it is running as an 'adhoc' request and the code is being sent to the reporting server not the name of a focexec. If you run it from a browser, the applicable variable is IBIF_ex.


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
August 18, 2008, 09:22 AM
rothlux
hi,

the url of your output window will always be the same(ie http://yourserver:yourport/ibi_apps/WFServlet).

you cannot differentiate url or retrieve the procedure name from url.



-------------------------------------------------------
Using WF 7.6.4
On Windows XP ,
OUtput gif , jpg , html
August 18, 2008, 09:47 AM
kunamneni
Hi Rothlux,

Thank you .

if some one is asking us to send weburl for testing one of the report.
example : test1.fex.
how can we provide url for test1 fex file.



quote:
Originally posted by rothlux:
hi,

the url of your output window will always be the same(ie http://yourserver:yourport/ibi_apps/WFServlet).

you cannot differentiate url or retrieve the procedure name from url.



WebFOCUS 7.6.4

windows
August 18, 2008, 10:05 AM
<JG>
If the fex resides in a folder in apppath then

http://yourserver:yourport/ibi_apps/WFServlet?IBIF_ex=test1

If you have securitiy on the user will be prompted to logon
If the fex is not in the APPPATH then you will need to add that
if you need additional parms you will need to add them
August 18, 2008, 10:09 AM
rothlux
if you want to call a fex with an url, it is possible with

http://yourserver:yourport/ibi_apps/WFServlet?IBIF_ex? yourfex.fex¶meter1=value1¶meter2=value2

fot test1 it should be something like :

http://deve.sam.test.com:17805/ibi_apps/WFServlet?IBIF_EX=test1.fex



-------------------------------------------------------
Using WF 7.6.4
On Windows XP ,
OUtput gif , jpg , html
August 18, 2008, 11:27 AM
<JG>
rothlux

It's servlet it's case sensitive it's IBIF_ex
August 19, 2008, 06:58 PM
StuBouyer
If you want to run a FEX that is not in the APPPATH then you can just give an explicit app path to the URL - IBIAPP_app=myapp.

so to run test1.fex from myapp folder on myserver.com then you would use:
[code]http://myserver.com/ibi_apps/WFServlet?IBIF_ex=test1&IBIAPP_app=myapp

A very useful tool for seeing the exact URL being passed to WebFOCUS is Fiddler2. Note: this is a windows tool and won't work for localhost - as Windows doesn't treat localhost requests the same as regular network requests for some odd reason.

If you're on *nix then use something like wireshark/ethereal instead.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
August 20, 2008, 10:34 AM
Doug
Try this for LOCALHOST:
http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carins...mp&IBIWF_language=en. Check the properties on this URL to see the full URL.

This should work from here if you have a copy of carinst in apps/ibisamp.

Thanks to Charlz for this insiight.

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
August 20, 2008, 11:05 AM
PHawk
You can also try

http://localhost:8080/ibi_apps/WFServlet?IBIC_server=ED...1=item1&PARAM2=item2
August 20, 2008, 04:24 PM
Charlz
quote:
http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carins...mp&IBIWF_language=en


Here's a VB/A function to build it :
------------------------------------
 Function GenerateLaunchLink(FileName As String, APPROOT As String, FileExtension As String, Parameters As String)

   ' Generate WF 'Launch' link (3 parts) :
   ' Arguments are to be 'assembled' prior to passing them to this routine :
   ' This link can be used from local machine, or from web accessing local machine
   ' Requires that WF be running at the time.
   
   Dim Temp As String  ' Store string as it's being built
   
        ' Part 1 of WF launch link : HTTP tag, port, hyperlink and program name :
        Temp = "<a href=http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=" & FileName
                
        ' Part 2 of WF launch link : Parameters
        Temp = Temp & "&IBIF_parms=" & Parameters
        
        ' Part 3 of WF launch link : Server info
        Temp = Temp & "&servername=default"
        Temp = Temp & "&IBIC_server=&appbx=1"
        
        ' Part 4 of WF launch link : Application path
        Temp = Temp & "&IBIAPP_app=" & APPROOT
        
        ' Part 5 of WF launch link : Language
        Temp = Temp & "&IBIWF_language=en>"
        
        ' Part 6 of WF launch link : Visible text
        Temp = Temp & "Launch it !" & "</a>"                          ' Using generic "Launch it" in link
     '  Temp = Temp & FileName & FileExtension & "</a>"               ' Alternate using filename in link

        GenerateLaunchLink = Temp ' Return concatenated hyperlink
        
End Function 

------------------------------------------------------------------------------------
... and then use the function in a PRINT statement :
Print #FileHandle, GenerateLaunchLink(ProgramName, APPROOT, FileExtension, Parameters)
------------------------------------------------------------------------------------

Hope this helps ?


WF 7.6.4 & 5.3
Charles Lee
August 21, 2008, 09:44 AM
susannah
ok, i'm curious, Melbourne..
what is that goofy character in front of "U"nix..i'm assuming a political statement of some sort???
oh please don't say it was a typo
i'm so in need of a witty retort this am...




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 21, 2008, 01:59 PM
Doug
I don't think this is witty enough for you Susannah. But, I think it's a typo which meant to be either aix or unix but the "u" was replaced with an "a" and caused the forum censorship to kick in... Maybe?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
August 25, 2008, 06:43 AM
StuBouyer
quote:
Originally posted by susannah:
ok, i'm curious, Melbourne..
what is that goofy character in front of "U"nix..i'm assuming a political statement of some sort???
oh please don't say it was a typo
i'm so in need of a witty retort this am...


Susannah,

Sorry for the delay in replying - it's winter here in Melbourne and that bring with it the wonders of flu season.
Anyways, it wasn't a typo, it was an asterix. It's supposed to represent the various flavours of Unix and the off shoots (Unix and all the specific Unixes - SCO Unix, RelianUnix etc - and the offshoots such as Minix, Linux, QUNIX) http://en.wikipedia.org/wiki/*nix.

Note: flavours is NOT a typo either, that's the way we spell it down under - probably due to minor mutations from eating Vegemite.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
August 25, 2008, 08:50 AM
susannah
ROFL Good One




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID