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     show value of variable
Go
New
Search
Notify
Tools
Reply
  
show value of variable
 Login/Join
 
Silver Member
posted
is it possible to show the value of locale variables?
where can i see the value? what is to do exactly? in chapter 11 (developing report applications) its described with global vars, but i don`t know where i should write down the query... into the FEX? or in the Dev Studio Console? or where else??
do i have to start the FEX before?
can i set a kind of breakpoints in Dev.Studio?
..lot of questions, i know.. but can someone help me please!!!!


Greetz Ernst
 
Posts: 30 | Registered: September 22, 2003Reply With QuoteReport This Post
Guru
posted Hide Post
Ernst-
re variables
A local variable (single ampersand) retains its value during the execution of ONE procedure; values are lost after the procedure finishes processing. A global (two ampersands) variable retains its vaule for the duration of the connection to the WebFOCUS Server. See p 10-32 of Developing Reporting Applications (5.2).
You can display the value of local variables with a DIALOG MANAGER command, -? &[string], which is executed in a procedure. To display global variables, the command ? && can be keyed in at the WebFOCUS prompt.
The values are displayed on the console in both cases.
The difference is driven by the persistance of the variables: the local lives in the procedure and the global lives in the session.
HTH
 
Posts: 252 | Location: USA | Registered: April 15, 2003Reply With QuoteReport This Post
Silver Member
posted Hide Post
hi jimster,
thanks for your help!

my problem was, i didn�t know, where exactly to write the dialog manager command? and where or how to run it??!! if i run the fex, then the whole table-output is shown Confused

but i found the solution myself!!! Cool

i wrote the query in the "other-tool" like this:
-SET &heute = &DATEYYMD;<br />-SET &yy = EDIT(&heute,'9999');<br />-? &yy
and then i "run" just the "other-tool" in the "procedure viewer".
and IT WORKED !!!!! yeahh!!!

you can�t find tips like this in the manuals. thats a pity... would be basic but necessary to work with webfocus!
 
Posts: 30 | Registered: September 22, 2003Reply With QuoteReport This Post
Guru
posted Hide Post
Ernst-
Here is another way method I use to display variables when testing or de-bugging.
-TYPE &|heute ist &heute
Using the pipe between the ampersand and the rest of the label will display the entire label with the ampersand - it just makes things little bit more readable.
HTH
 
Posts: 252 | Location: USA | Registered: April 15, 2003Reply With QuoteReport This Post
<monte2000>
posted
Local variables can be retrieved by issuing the following command: -? &

Note: Local variables are available only during execution of a FOCUS procedure and the above command should be used within the context of a FOCUS procedure.

This command can also be entered in the Developer Studio Console which sends the command as an ad hoc request to the Reporting Server used for development. In this case a list will be displayed with statistical variables set by the product to reflect system info such as date time etc. For global variables, the following command is used: ? &&
 
Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     show value of variable

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.