company logo

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.

Option settings

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

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.

Line-based user communication

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.

Process queue management

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".

Function Groups
Functions