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