Focal Point
[SOLVED] MR Internal Variables

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

April 29, 2010, 09:49 AM
ABT
[SOLVED] MR Internal Variables
In using the MR Internal variables in included Focus Executables, can they be made to report values from the calling FEX and not the FEX they are listed in?

Example:
-* Program: master.fex
-MRNOEDIT -INCLUDE CHILD
-* end master.fex


-* Program: child.fex
-TYPE &MR_FULL_FEXNAME
-* end child.fex


The above should report 'child.fex'. How can I make it report 'master.fex'? Any code additions would have to go into 'child.fex'.

I think I know the answer to this, but I'm hoping someone has some insight I may have missed.

THANKS!
- ABT

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


------------------------------------
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
April 29, 2010, 10:58 AM
Francis Mariani
Try the &FOCFOCEXEC variable.

parent.fex (In an MRE domain):
-TYPE ====== INSIDE PARENT.FEX
-? &

-INCLUDE CHILD.FEX


child.fex (in a folder in the App Path):
-TYPE ====== INSIDE CHILD.FEX
-? &


The &FOCFOCEXEC should be the name of the parent fex. Unfortunately, there is an underscore prepending the name, and I'm not sure what happens to file names of 8 characters.


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
April 29, 2010, 11:11 AM
ABT
Thanks Francis, this is exactly what I was hoping for.

-ABT


------------------------------------
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