Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     System variable &FOCFOCEXEC not working properly in MRE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
System variable &FOCFOCEXEC not working properly in MRE
 Login/Join
 
<Steven>
posted
I need to reference the &FOCFOCEXEC to get the FEX file name inside MRE that is current executing. Currently the value of &FOCFOCEXEC always return back _ADHOCRQ for any programs. We developed a smaller utility that will write usage statistics to the database for each of the FEX programs inside MRE. Without any means to identify the filename, the utility serves little purpose.

Please let me know if anyone can get &FOCFOCEXEC to return the proper file name, or find some other means to uniquely identify the FEX program.
 
Report This Post
Expert
posted Hide Post
MRE is a special beast and this issue has been discussed before.

I am assuming you're using a WebFOCUS version post 5.3.2, so I'm not 100% sure this is still valid, but here is what I would do:

Open WebFOCUS Administration Console > Configuration > Custom Settings

and add the following line:

IBIMR_fex (pass)

This creates a DM variable called &IBIMR_fex available in all programs. It will pass the MRE file name for the executed program. The format will be app/filename.fex which may not be hugely desirable, but your utility could easily remove the app/ and the .fex. &IBIMR_fex will be blank for programs not run through MRE or Dashboard.

You can pass many interesting variables, some include:

IBIC_server (pass)

IBIMR_domain (pass)
IBIMR_folder (pass)

MR_BASE_DIR (pass)

Search for "Custom Settings" in this forum to see a detailed list of other parameters that can be passed.

This message has been edited. Last edited by: Francis Mariani,


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
For self-serve apps (non-MRE) I would add:

IBIF_focexec (pass)

or

IBIF_ex (pass)

depending on which you use.

It appears that '_' is added to a fex name in variable &FOCFOCEXEC, i.e. fex 'bid1' would be '_bid1'.

This message has been edited. Last edited by: Francis Mariani,


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
applause




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     System variable &FOCFOCEXEC not working properly in MRE

Copyright © 1996-2020 Information Builders