Focal Point
HTML link to MRE report?

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

June 19, 2007, 09:48 AM
Jason K.
HTML link to MRE report?
I've written a simple html href to link to one of my MRE reports as follows...

A HREF="/cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=app/wcqrgj18.fex" mmtest /A

(the < and > have been removed so this post will render properly)

I'm getting this error:
(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: app/wcqrgj18.fex

I've tried taking off the app/ and the .fex. Is it possible that I can't link to an MRE report for security reasons or something?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
June 19, 2007, 10:11 AM
Kamesh
When you call a MRE report from your HTML, you need to pass all these informations

<input type="hidden" name="IBIMR_action" value="MR_RUN_FEX">
<input type="hidden" name="IBIMR_sub_action" value="MR_STD_REPORT">
<input type="hidden" name="IBIMR_domain" value="yourdomain/yourdomain.htm">
<input type="hidden" name="IBIMR_folder" value="#yourfolder">
<input type="hidden" name="IBIC_server" value="yourserver">
<input type="hidden" name="IBIMR_fex" value="app/yourfex.fex">
<input type="hidden" name="IBIF_ex" value="app/yourfex.fex">
<input type="hidden" name="IBIMR_defer" value="" >
<input type="hidden" name="IBIMR_drill" value="RUNNID">

In your case you have to pass these values as parameters.

Hope it helps,


WFConsultant

WF 8105M on Win7/Tomcat
June 19, 2007, 10:14 AM
Francis Mariani
In an MRE HTML HREF, you need to specify the Domain and Standard Reports Folder. The quickest way to create the required href code is to run a report from MRE and copy-paste the report window's URL. Here's an MRE call:

http://gfnotoeiprod/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2fbid1%2efex&IBIMR_folder=%23testyrsaxhlg&IBIMR_domain=francism%2ffrancism%2ehtm&IBIMR_Random=4%2b%2d5411243135710966619&

or

http://gfnotoeiprod/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app/bid1.fex&IBIMR_folder=#testyrsaxhlg&IBIMR_domain=francism\francism.htm



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
June 19, 2007, 10:24 AM
Jason K.
thank you for the replies!

Following Francis's recommendation, I've run a report from my MRE but the URL is always
http://svr99rvi/ibi_apps/WFServlet

Everything after the ? seems to not be there. Is there some sort of method to see the full URL that you're talking about?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
June 19, 2007, 10:43 AM
John_Edwards
Here's the inside trick --

Go to the report you want to call in MRE, right-click on it, and select the Publish option.

Click on the Show As Report button, give it a name and click OK.

The new html file will include a line that says (form . . . method='post') Change that method parameter to method='get'.

Save, and then run that published html file.

When you click on the Submit button, your report will appear.

All your required variables will magically appear in the url string.

J.



June 19, 2007, 10:45 AM
Francis Mariani
My example is using servlet. Is your server set for servlet or CGI?

Did you run an MRE report and copy the link?


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
June 19, 2007, 10:57 AM
Jason K.
This is GREAT!
Thanks Francis and John.

Someone should sticky that trick, it's going to come in handy for more than just this for me. A querystring can really help debug things.

Is there any way to pass a username using this method? We're being prompted for MR security.

Thanks again!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
September 02, 2008, 02:18 PM
dballest
Hi John_Edwards,

I don't see the Publish option? Is this option version specific?

Thanks,
Dan


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE