Focal Point
href to a fex from a seperate server?

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

February 08, 2007, 04:56 PM
Jason K.
href to a fex from a seperate server?
Hello!

I've found an article on using html links to call a fex..it lists the syntax as follows

  • Midwest

    I'm having the worst trouble putting an .htm on my web server and getting it to work. What can I change the link to in order to fully qualify it?

    i.e. rather than "/cgi-bin/" "c:\x\y\z"

    Thanks!


  • Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
    February 08, 2007, 04:56 PM
    Jason K.
    it rendered the link as html. here it is sans the html tag

    A HREF="/cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=csales&CATEGORY= Coffee&RGN=Midwest"


    Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
    February 08, 2007, 05:10 PM
    Francis Mariani
    Try
    <a href="../../cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=csales&CATEGORY=Coffee&RGN=Midwest">
    

    I probably wouldn't have blanks in the href (there was one before Coffee).

    This is assuming the WebFOCUS server is on the same server as the web server that your html page is displayed from.

    BTW, to have HTML code display correctly in a forum posting, click on the Options link at the left of the post window and select "Disable HTML".

    Cheers.


    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
    February 08, 2007, 05:22 PM
    susannah
    <a
    href="http://servername/cgi-bin/ibi_cgi/webapi.dll?IBIF_ex=fexname&PARM1=VALUE1">
    

    adjust accordingly if you use servlet

    by the by, you've hit on precisely why you have to put in this command
    SET FOCEXURL = http://servername/cgi-bin/ibi_cgi/webapi.dll
    when executing a fex with drilldowns that you are going to email out in Outlook.
    Otherwise, your drilldown, which starts right with that cgi bit, has no clue where to find this focus engine.

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




    In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
    February 09, 2007, 09:39 AM
    Jason K.
    Thank you for the replies!

    I have tried both of your solutions and still receive "The page cannot be found"
    Could the problem be related to trying to call the .fex from a seperate webserver?


    Here's my code, just in case.

    <a
    href="http://svr99wfrs/cgi-bin/ibi_cgi/webapi.dll?IBIF_ex=APP/facility.fex&TEST=FOC_NONE">
    somevalue

    <a
    href="http://svr99wfrs/cgi-bin/ibi_cgi/webapi.dll?IBIF_ex=facility.fex&TEST=FOC_NONE">
    somevaluenew

    <a
    href="http://svr99wfrs/cgi-bin/ibi_cgi/webapi.dll?IBIF_ex=facility.fex">
    thisonetoo


    Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
    February 09, 2007, 10:54 AM
    Tony A
    Jason,

    There are a few special parameters that you should pass in a fex call and they differ from MRE and Self Serve. Search on the instance of "IBIMR_domain" to find a recent posting with the MRE ones in. As for the self serve, you ought to get used to including the "IBIAPP_app" even though it is not always required if the fex you are intending to run resides in the APP PATH.

    One big thing to ensure is that the "svr99wfrs" is a known DNS alias or is available.

    T



    In FOCUS
    since 1986
    WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
    WebFOCUS App Studio 8.2.06 standalone on Windows 10 
    February 09, 2007, 01:23 PM
    susannah
    good point, where is the engine you're expecting to run? on svr99wfrs? and is the fex on that server's edapath or apppath (whichever you use)? or, are you expecting to run the fex using the engine on your host server and just grabbing the fex from your 99wfrs? and i for one still have no clue what a 4-tier env means? would you teach us?




    In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
    February 11, 2007, 12:03 AM
    TexasStingray
    Jason,

    By Default WebFOCUS 7.x uses the WebFOCUS Servlet. Try making your call using it. If the default web application context is not ibi_apps then you will have to change it to what it should be.

    href="http://svr99wfrs/ibi_apps/WFServlet?"
    


    just try calling the servlet with out any parameters to see if there is a response.

    Hope this Helps




    Scott

    Thanks for the ideas folks!

    Here's what I tried...

    1)There is a DNS Arecord for the svr99wfrs server... as it responds from ping.

    2) I checked, and the app I was trying to call was in the app path. Good point to check that, thanks!

    3) href="http://svr99wfrs/ibi_apps/WFServlet?"
    I did this and got a "page cannot be found"

    What I call a 4-tier architecture is a database server (Ibm as400), a webfocus reporting server (svr99wfrs is what we call it) running win server 2003, a seperate web server running IIS/ tomcat on win server 2003 (called svr99rvi in our shop), and the user's web browser being the fourth tier.

    So, realizing that I should be referencing the web server and not the reporting server, I tried these links.

    <a
    href="http://svr99rvi/cgi-bin/ibi_cgi/WFServlet?IBIF_ex=APP/facility.fex&TEST=FOC_NONE">
    somevalue
    <P>
    <a
    href="http://svr99rvi/cgi-bin/ibi_cgi/WFServlet?IBIF_ex=facility.fex&TEST=FOC_NONE">
    somevaluenew
    <P>
    <a
    href="http://svr99rvi/cgi-bin/ibi_cgi/WFServlet?IBIF_ex=facility.fex">
    thisonetoo

    And all return page cannot be found.

    Thanks again for all of your help!


    Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
    it should be this

    href="http://svr99rvi/ibi_apps/WFServlet?IBIF_ex=facility"
    


    Scott




    Scott