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     [SOLVED]Setting up a limit in a .mas file using a global variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Setting up a limit in a .mas file using a global variable
 Login/Join
 
Platinum Member
posted
I have a global variable that stores the current semester. This is found in the global_setting.fex file. I can't seem to create a limit in the .mas file that uses this variable, &&CTERM.

The limit I created is
TBRMEMO_TERM_CODE EQ &&CTERM

The error I am getting is
(FOC32569) VARIABLE &&CTERM IS UNDECLARED

Are you not allowed to setup filters in .mas files that contain variables that are to be used in procedures?

This message has been edited. Last edited by: <Emily McAllister>,


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Guru
posted Hide Post
I guess you need to declare that global variable at server profile.


http://forums.informationbuild...777017276#3777017276

There are some other topics about it, search for: global variables master

I hope it helps.


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
I don't think I asked the question properly. I have a SET command labeled &&CTERM that returns the value of the current semester. I would like to use this semester value in my report limits so that the user is not prompted for the value but it is supplied automatically to the limit. The confusion is that it is not really a variable, it is a calculated value at the time the report is run. Can this be done? Sorry for the newbie question.


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Virtuoso
posted Hide Post
Trudy,
Welcome!

I think the following example can help.
Master File:
  
FILENAME=TRUDY   , SUFFIX=FIX     
VARIABLE NAME=&&SEATS, USAGE=A1, DEFAULT=4, $
  SEGMENT=TRUDY, SEGTYPE=S2, $
    FIELDNAME=COUNTRY, ALIAS=E01, USAGE=A10, ACTUAL=A10, $
    FIELDNAME=SEATS, ALIAS=E02, USAGE=I3, ACTUAL=A03, $
    FIELDNAME=SALES, ALIAS=E03, USAGE=I6, ACTUAL=A06, $
FILTER TSEAT = SEATS EQ &&SEATS; $

Data (taken from the CAR file):
  
ENGLAND     2     0
ENGLAND     4     0
ENGLAND     5 12000
FRANCE      5     0
ITALY       2 25400
ITALY       4  4800
JAPAN       4 78030
W GERMANY   4  8900
W GERMANY   5 79290

Example of fex:
  
-* File trudy01.fex
-* The data is in my "focalpoint" application
-*
-SET &&SEATS=2;
FILEDEF TRUDY DISK FOCALPOINT/TRUDY.FTM
TABLE FILE TRUDY
PRINT *
WHERE TSEAT
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
CLOSED - I figured out my issue, chalk it up to newbie learning the ropes


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Guru
posted Hide Post
Trudy - what was your solution? I'm facing a similar problem too!


Webfocus 8
Windows, Linux
 
Posts: 258 | Location: Palm Coast, FL | Registered: February 05, 2010Report 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     [SOLVED]Setting up a limit in a .mas file using a global variable

Copyright © 1996-2020 Information Builders