Focal Point
[Closed] Calling MRE-procedure from EDASERVE?

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

March 03, 2010, 05:02 AM
Stefan
[Closed] Calling MRE-procedure from EDASERVE?
Hi there,

my search on Focal Point was resultless, therefore I'm gonna try it this way:

I know how to call a fex stored which is stored EDASERVE's appfolder from MRE with:

-MRNOEDIT -INCLUDE appfolder/program.fex
-EXIT


Now I'm looking for the opposite way; this means that I want to call a procedure stored in MRE from EDASERVE, something like:


-INCLUDE MREFOLDER/procedure.fex
-EXIT



Any ideas are - as always - appreciated.



Kind regards,

Stefan

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


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint
March 03, 2010, 05:38 AM
<JG>
APP MAP
March 03, 2010, 07:00 AM
Stefan
JG,

my fex on EDASERVE looks like this:

APP MAP APP1 c:\WebFOCUS76\basedir\mypath\app
APP PREPENDPATH APP1

-*APP SHOWPATH

-INCLUDE APP1/myfex.fex


Running this fex gives me the error FOC227.

Still no idea.


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint
March 03, 2010, 07:09 AM
<JG>
quote:
c:\WebFOCUS76\basedir\mypath\app


Stefan that does not look correct to me.

Unless you are using a non-standard basedir it should at least be

c:\ibi\WebFOCUS76\basedir\mypath\app

Also check that the fex is actually called what you think it is which may be different from the MRE display name.
March 03, 2010, 03:36 PM
Waz
Also make sure that MRE (The web component of WF) is on the same box as the server.


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!

March 08, 2010, 03:11 AM
Stefan
Hi,

my WebFOCUS installation path is correct.

MRE and server are on the same box.

Still investigating...


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint
March 08, 2010, 04:20 AM
Computix
quote:
-INCLUDE APP1/myfex.fex


Hi,

if I am right, you don't need the APP1.
Just call -INCLUDE MYFEX

Regards,
Markus


WF 7.6.6 (MRE,BID, DevStudio, partly RC) on Windows 2003 /Apache/Tomcat
Output: HTML,Excel,PDF,PPT
Adapters: SQL Server, DB2, Oracle
March 08, 2010, 05:34 AM
j.gross
Bear in mind: if the target MR fex uses any MR-specific statement syntax, you're still up the creek.

That would include any use of
-MRNOEDIT


or -include of other MR fex files:

-INCLUDE [domainname]/APP/fexname

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
March 08, 2010, 01:25 PM
Darin Lee
including use of any other objects within the MRE structure like images. I would be VERY careful about adding your MRE basedir to the app path of the server. If you're not careful, you could be circumventing the entire security layer that MRE uses. Personally, I would never do this. It can be handled better by use of the proper parameters in the request (IBIMR_action, IBIMR_sub_action,IBIMR_drill,IBIMR_domain,IBIMR_fex,IBIMR_folder, etc.) You can find them all by publishing a report within MRE and then looking at the parameters that are created in the default launch page.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
March 08, 2010, 02:26 PM
Woody
If I understand you correctly, you want the procedure to execute in WebFOCUS and FOCUS (you refer to it as EDASERVE).

The only method I found to work is to use the full path in the include statement.

-INCLUDE /u01/iadmin/ibi/WebFOCUS76/basedir/domainname/app/program.fex [.fex is optional]

If you want the procedure to run in both WebFOCUS and FOCUS you will need to make a few additional adjustments.

I hope I understood your requirement correctly. I hope this helps.


WF 7.6.10 Unix Oracle
March 09, 2010, 02:29 AM
Stefan
Hi there,

with help from IBI support it works like this:
quote:

APP MAP APP1 c:\WebFOCUS76\basedir\mypath\app
APP PREPENDPATH APP1
-RUN

-INCLUDE APP1/myfex.fex


@Darin Lee:
Can you tell me were I can get more information on the parameters (IBIMR_action,...) you mentioned?

Kind regards,

Stefan


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint
March 09, 2010, 03:38 AM
Ram Prasad E
You can find more about request parameters in chapter-2 of this document.

http://documentation.informati...f761api/wf761api.pdf


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/