The oConfig member maps to the server's configuration object for this project.
You can access any custom configuration settings you've defined on the object through the following interfaces from within a wwProcess class:
oConfig and Config are mapped if a configuration class with the same name as the class exist (for the wwDemo class it would Server.oConfig.owwDemo). These are mapped to wwServerConfig instances that act as a master class. The class has to map to:
For example, for the wwDemo class the hierarchy looks like this:
The class must be defined and hooked up to the wwServerConfig instance of the application. The new Process Wizard automatically creates these classes which are declared and hooked up at the bottom of your application's main PRG file (<myapp>Main.prg). Please check there to see how this works.
Use the configuration class to hold any commonly configurable settings that get persisted into the application's INI file.
See also:Class wwProcess | Class wwServerConfig
Comment or report problem with topic