This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 13, 2016, 6:27 AM
16 Posts

LS Question on Global Variables

  • Category: Domino Designer
  • Platform: All Platforms
  • Release: 9.0.1
  • Role: Developer
  • Tags: LS
  • Replies: 2

I have a question I have always wondered but have not asked regarding global variables in LS.

When I open a form, I have a bunch of global variables that are set in my LS on the QueryOpen.  When I close the form, I have my QuerySave that goes and gets handles to some of the same DBs I originally did on the QueryOpen.

How come the global variables are not still available to be used?

Specifically I get handles to my admin db, mail db, log db etc - and I have delays each time the I get these handles.  I am looking to streamline this and I originally always thought a global variable would be available to be used beyond the QueryOpen, for example.

May 16, 2016, 4:22 PM
100 Posts
Does this help? - update

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/6248004900cda4fb862570910046ff11?OpenDocument&Highlight=0,global,variable,scope

Also,is there any chance somewhere along the line you're re-setting or declaring something that's a global variable?

 

Update: I just created a variable on a test form and set it on queryOpen. I tested using a messagebox for several form events including queryClose and the var was available as it was set in the QO event.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal