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.
Would someone please remind me why is it that &IBIMR_user is available when executing a report from within MRE but not when executing the same report from RC?
Executing a report from within MRE:
CURRENTLY DEFINED & VARIABLES STARTING WITH 'I':
&IBIAPP_app = app1 app2 app3 baseapp
&IBIMR_domain = app1/app1.htm
&IBIMR_folder =
&IBIMR_user = douglaslee
&INDEXIO = 0
&INPUT = 0
&INVALID = 0
Executing a report from RC:
CURRENTLY DEFINED & VARIABLES STARTING WITH I :
&INDEXIO = 0
&INPUT = 0
&INVALID = 0
The reason I ask is that I want to determine "who" is executing "this procedure". So, the following should work (unless someone has a better idea):
Might be because when a report is run from RC ..RC will not go thru the WF client component ..so the variables from client component are not sent out to the reporting server. I think it only picks up the FEX from MRE and doesnt execute all the preprocessing steps in the WF client ..like the odin.cfg/cgivars/site.wfs....where all these variables are setup to be PASSed to the reproting server..
thanks Sashanka
WF 7.7.03/Windows/HTML,PDF,EXL POC/local Dev Studio 7.7.03 & 7.6.11
Doug, Consider the following code. It was originally intended to do one thing if executed via BID/Ad Hoc but do something else if executed via ReportCaster. My attempt was to use the same fex to support a manual and adhoc process. If executed manually, it would prompt for values, if executed via ReportCaster, it would hit a routine that calculates a start/end date.
-***********************************************************************
-SET &PGMNAME = 'CPIMPERR';
-SET &RPTNAME = 'Changepoint: Interface Errors';
-SET &ANALYST = 'BLAKE THOMPSON';
-***********************************************************************
-IF &FOCFOCEXEC NE 'RCASTER' THEN GOTO LOGUSER ELSE GOTO SKIPLOG;
-***********************************************************************
-LOGUSER
-* USER is a human coming in through MRE.
-***********************************************************************
-SET &USERID = UPCASE(25,&IBIMR_user,&IBIMR_user);
-SET &GROUPID = 'SOLUTION';
-SET &REPORTID = &PGMNAME;
-SET &UNIQUEID = '';
-MRNOEDIT -INCLUDE RUNEVENT
-*****OPTIONS ARE (UHS, BRT, CHO, HET, OBH, PCMH, RCH) AND (PROTECTED,UNPROTECTED)
-SET &SECURITY = 'UHS UNPROTECTED';
-SET &RPTNAME = &RPTNAME;
-SET &KEYWORDS = 'CHANGEPOINT INTERFACE';
-MRNOEDIT -INCLUDE RPTNAME
-***********************************************************************
-SKIPLOG
-IF &FOCFOCEXEC EQ 'RCASTER' THEN GOTO SETAUTO ELSE GOTO SETMAN;
-SETMAN
-* USER is a human coming in through MRE.
-PROMPT &BEGDATE.Provide the BEGINNING date you wish to see import errors for (yyyymmdd hh:mm:ss):.;
-PROMPT &ENDDATE.Provide the ENDING date you wish to see import errors for (yyyymmdd hh:mm:ss):.;
-GOTO ENDSET
-SETAUTO
-* USER is ReportCaster and must be fed a date parm.
-SET &PB=1;
-MRNOEDIT -INCLUDE SDRYYMD
-SET &BEGDATE = &BKDAYS_YYMD | ' 00:00:00';
-SET &ENDDATE = &BKDAYS_YYMD | ' 23:59:59';
-GOTO ENDSET
-ENDSET
-ENDDATE
SET ASNAMES = ON
-*BEGIN REPORT -------------
TABLE FILE CAR
PRINT
*
END
I think this only gets displayed when you use the Command Console or execute the fex from Dev Studio in Edit mode. You should get a different value when running it via BID or right-click, run.