Skip to content

The Using Dependency

Data-entry objects require the services of a DDO for access to the database. This dependency should be specified when the DEO is created. It does this with the server property.

Object oMyDEO is a dbForm
    Set Server to Child_DD
End_Object

Once the object has been created, the DEO and DDO "know" about each other. The DEO keeps track of which DDO it uses by maintaining a property named server. This property contains the object_id of the DDO it uses. DDOs keep track of all DEOs using their services through internal properties. Once the using association is established, the objects can communicate directly. Since the DEO is expected to be using a DDO, the DDO must be created first.

Not all components use the server property to establish a Using Dependency. Business Process objects and Web Service objects, for example, do not. Instead, these components communicate with their DDOs explicitly by creating methods that send messages to the DDOs.

Next Topic

Putting Together a View