ProjectContext - GUI project context
The project context class is typically used for implementing project actions defined in the project or application menu and other common services for the project. The default project context class supports common services option settings, process queue, input and output, login etc. Thus, the project context provides a number of services, which can be used optionally.
In order to extent the provided services, one may implement project specific behavior in a project specific context class inheriting from CTX_Project . Therefore, a resource identification number (resource-ID) and a context class inheriting from CTX_Application have to be assigned to the project resource.x
A project context class instance is created when starting a project. When no user-defined project context class is assigned to the project resource, an instance of the default project context class will be created.
ODE applications support user related option settings, which can be defined using the default option settings dialog. When starting a project, options are made available internally. Options might be accessed via Option class functions or as option variables enclosed in %...% (OSI functions).
The project context provides serves for initializing or reinitializing options.
Login services are provided in order to support database login. In order to run login processes (e.g. login dialog), the executeLogin() function can be overloaded in the project context. This function is automatically called, when opening a database.
Interaction via graphical user interfaces is nice, but sometimes it becomes a burden at the same time, since several requests can be easier expressed in a line command. Also, protocol data from executed actions is easier to read in a console like window than in complicate tables or forms.
Thus, the project context support input and output areas, which can be used for processing command line requests and listing output protocols.
ODE projects provide services for managing one or more process queues for each project. Process queues allow defining request and storing them in a process queue, which might be processed locally, on a remote computer or immediately. Thus, long term actions can be executed without blocking the local machine.
More details are described in "Remote Processing".
- 1. Administration - Administration functions
- ProjectContext - Constructor
- eventNotification - Event notification handler
- eventNotificationEnabled - Event notification handling
- executeLogin - Execute login
- hasInputContext - Has intput control property
- hasOutputContext - Has output control property
- initializeOptions - Initialize application options
- input - Get line from Input area
- inputContext - Control context for input area
- output - Write output to output area
- outputContext - Control context for output control
- permitted - Check action permission
- protectAction - Protect action
- resetInputContext - Reset input context for project
- resetOutputContext - Reset output context for project
- resetPermissions - - internal feature (not documented)
- saveDataEnabled - Save data after value has been changed
- splashText - Change text on splash screen
- ~ProjectContext - Destructor