20.6 Utilize an Application Object

It is a recommended approach to have a single object defined as your application scope object. This object should include any event definitions, property definitions, commonly used routines and access to data objects that you may need to access from any point in your web application. The global object is typically defined as a Reusable Part of type Object (#PRIM_OBJT)

Function Options(*DIRECT)

Begin_Com Role(*EXTENDS #PRIM_OBJT)

In any Web Page and Reusable Parts where you need access to the definitions contained in the global object you create a *application reference – this indicates a single instance of the object is created and kept alive as long as the web client is alive.

* Application

Define_Com Class(#XKMAPP) Name(#Application) Scope(*APPLICATION)