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] IBI.AMP works but IBI.GBL does not work

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] IBI.AMP works but IBI.GBL does not work
 Login/Join
 
Guru
posted
Hi there - Can anybody 'splain this to me?

-SET &&YRLESSFIVE = (&DATEYY - 5);
-SET &&YRPLUSFIVE = (&DATEYY + 5);

-SET &YRLESSFIVE = &&YRLESSFIVE;
-SET &YRPLUSFIVE = &&YRPLUSFIVE;

-HTMLFORM BEGIN

<SPAN>How come these GLOBAL variables do not resolve?</SPAN><BR>
<SPAN>!IBI.GBL.YRLESSFIVE;</SPAN><BR>
<SPAN>!IBI.GBL.YRPLUSFIVE;</SPAN><BR>
<BR>
<SPAN>But yet if I set these LOCAL variables equal to the GLOBAL variables it works!</SPAN><BR>
<SPAN>!IBI.AMP.YRLESSFIVE;</SPAN><BR>
<SPAN>!IBI.AMP.YRPLUSFIVE;</SPAN><BR>

-HTMLFORM END

This message has been edited. Last edited by: Dan Pinault,


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report This Post
Expert
posted Hide Post
Is there a reason why you can't use &&YRLESSFIVE and &&YRPLUSFIVE


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Try !IBI.GLB.YRLESSFIVE; (etc)
(not GBL !)


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Guru
posted Hide Post
Waz, I want to use the values in a JavaScript function. Yes, yrlessfive and yrplusfive can be declared in JavaScript but I have other global variables I want to use this way too.


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report This Post
Gold member
posted Hide Post
!IBI.GLB.YRLESSFIVE it is. I just tested it.
 
Posts: 60 | Location: Ellensburg Washington | Registered: May 22, 2009Report This Post
Guru
posted Hide Post
Darn syntax! Geez, shouldn't the system know what I meant?!? Wink
Thanks for the extra set of eyes.

OK - here is the scenario I'm using this in:
The global variables are defined either in the server profile or the group profile (depending on the variable).
I built a simple HTML page in the Composer that just shows these variables as text objects.
If I run the HTML page by itself the variables do not resolve.
However, if I create a fex that has
 -HTMLFORM app/webpage.htm 
then the variables resolve.

Does this mean I need to launch the web page from a fex if I want to use these variables or is there some similar mechanism that can be used in the HTML page itself?

Thanks again!

Dan


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report This Post
Expert
posted Hide Post
Hi Dan,

Yes, that is exactly how we architect. All programs are done on the server. All calls to these programs are from MRE.

So, we have:
1 place to modify a program
Calls from MRE invoke all the .wfs script files which may include security fex's.
-MRNOEDIT -INCLUDE app_folder/PROGRAM.FEX
-MRNOEDIT -HTMLFORM app_folder/PROGRAM.HTM

There are many other reasons we do this.

hth


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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] IBI.AMP works but IBI.GBL does not work

Copyright © 1996-2020 Information Builders