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     [CLOSED] display physical name of fex - ADHOCRQ

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] display physical name of fex - ADHOCRQ
 Login/Join
 
Master
posted
Always the optimist, I was hoping to display the physical name of the fex I am running in the heading of a report. So I have tried this code:

TABLE FILE MMDB1
HEADING CENTER
" COUNT OF UNIT COORDINATORS "
" &FOCFEXNAME ROUTINE "
"REPORT: &FOCFOCEXEC -- EMPLOYEE SALARIES"
" &DATEMtrDYY "  


The documentation states that if I am working in Devstudio MRE, these are the results I should expect:

&FOCFEXNAME (returns ADHOCRQ when open in editor, focexecname when not open)
&FOCFOCEXEC (returns _ADHOCRQ when open in editor, _focexecname when not open)
&FOCINCLUDE (returns ADHOCRQ when open in editor, focexecname when not open)

True to form, I see this result:



COUNT OF UNIT COORDINATORS  
ADHOCRQ ROUTINE  
REPORT: _ADHOCRQ -- EMPLOYEE SALARIES 
October 19, 2012  
 

ASSIGNEE ASSIGNEE
COUNT  
II08 207 
II09 549 
MS52 77 
MS53 43 
SL8C 43 
SL8V 36 
SL8W 43 
SM02 29 
SM04 23 
SM11 75 
SR2A 59 
SR2B 69 
TV14 154 



Other than handcoding the fex's name in the heading, has anyone found a more difficult way around this ?

Forever the optimist!

Thanks.

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Virtuoso
posted Hide Post
This is a sample of the standard heading code we use via a -INCLUDE after the report HEADING statement in our non-MRE report environment:

-DEFAULTS &IBIAPP_app = 'unknown'
-DEFAULTS &DSTJOBNAME = 'unknown'
-*
-SET &BEG_PGMNAME = IF (EDIT(&FOCFOCEXEC,'9$') EQ '_') THEN 2 ELSE 1 ;
-SET &END_PRGNAME = IF (&FOCFOCEXEC CONTAINS '.fex')
-                   THEN (POSIT(&FOCFOCEXEC,&FOCFOCEXEC.LENGTH,'.fex',4,'I3') - 1)
-                   ELSE &FOCFOCEXEC.LENGTH ;
-SET &PRGNAME_LEN = IF (EDIT(&FOCFOCEXEC,'9$') EQ '_') THEN (&END_PRGNAME - 1) ELSE &END_PRGNAME ;
-SET &RPT_PROGRAM = IF (&FOCFOCEXEC EQ 'RCASTER') THEN (&DSTJOBNAME || '.fex')
-                   ELSE &IBIAPP_app || '\' ||
-   SUBSTR(&FOCFOCEXEC.LENGTH,&FOCFOCEXEC,&BEG_PGMNAME,&END_PRGNAME,&PRGNAME_LEN,'A&PRGNAME_LEN.EVAL') || '.fex';
-*
-SET &RPT_DATE_TEXT = 'Report Date: ' | &DATEMDYY ;
-SET &RPT_ID_TEXT   = 'Program='|| &RPT_PROGRAM || ', Department=<hard-coded name of support department for report>';
-*
"&RPT_DATE_TEXT.EVAL"
"&RPT_ID_TEXT.EVAL"


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Variables like &FOCFOCEXEC are sometimes not exposed to the report server, so when you used them you don't get squat. You can access the administrative console under application settings and custom settings and expose any system variable you want.


Release 8.2.1
Microsoft Server 2012R2
 
Posts: 11 | Location: Kentucky | Registered: February 06, 2007Report 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     [CLOSED] display physical name of fex - ADHOCRQ

Copyright © 1996-2020 Information Builders