Focal Point
show value of variable

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7941067331

October 07, 2003, 03:01 PM
Ernst
show value of variable
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
October 07, 2003, 09:04 PM
jimster06
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
October 08, 2003, 05:35 AM
Ernst
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!
October 08, 2003, 12:54 PM
jimster06
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
October 09, 2003, 03:23 PM
<monte2000>
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: ? &&