Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
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
Go
New
Search
Notify
Tools
Reply
  
[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: 394 | Location: St. Paul, MN | Registered: November 06, 2007Reply With QuoteReport 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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport 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, 2003Reply With QuoteReport 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: 394 | Location: St. Paul, MN | Registered: November 06, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
!IBI.GLB.YRLESSFIVE it is. I just tested it.
 
Posts: 60 | Location: Ellensburg Washington | Registered: May 22, 2009Reply With QuoteReport 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: 394 | Location: St. Paul, MN | Registered: November 06, 2007Reply With QuoteReport 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: 1958 | Location: Centennial, CO | Registered: January 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.