Focal Point
Is it possible to change the value of the Global variable in FEX.

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

June 01, 2007, 02:40 PM
kummy
Is it possible to change the value of the Global variable in FEX.
I have created a global variable in EDASPROF file is it possible to change the value through my FEX?
June 01, 2007, 02:47 PM
TexasStingray
YES

  
-SET &&_____ = ______;





Scott

Yeah you are right but after i set the new value the change is not reflecting in the other FEX's
kummy,

A couple of thoughts.

1) Make sure your GLOBAL variable has two '&' signs (&&). A single & is not a global variable. It is a local variable.

2) Global varialbes still only exist for the duration of the session on the WebFOCUS server. If you are returning to the browser and then the user submits another request, that is considered a whole new session and therefore everything starts over.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
You are correct the change is only for that session. how about this. In the edasprof.prf move the variable that you want to change to a focexec. then in the focexec that you want to change the variable use a filedef and dialog manager -WRITE to set to replace the focexec. you could also use a table request that read the variable from a DBMS and then in the focexec update the table with the new value.




Scott

Try this setting in the WebFOCUS Administration Client Console:

IBIF_persistentamp

Turns on the persistent && feature. By default, this is set to YES. To disable, set to NO. The persistent && feature allows you to persist && variables for the duration of the browser session.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
Also be aware that for persistentamp to work, cookies must be enabled. A cookie called WF_AMPERFILE is created in the browser pointing to a file in the WebFOCUS temp directory.


Alan.
WF 7.705/8.007