Try OpenEdge Now
skip to main content
Application Developer's Guide
Using custom dataslots : Defining custom dataslots with complex objects
 

Defining custom dataslots with complex objects

Custom dataslots can be used to define the presentation of a complex object that cannot be accomplished with standard dataslot types. For example, it might be required to create a custom dataslot in order to include a table or bar graph in a Web application. The custom dataslot then presents a complex object in an interface page which is seen by the user when the application is launched in the user’s Web browser.
Use any of the following methods to define custom dataslots that can then display complex objects and change the presentation of an interface:
*Default or custom factory (a type of adapter) to create and initialize a custom dataslot (see Using factory-type adapters).
*The getPresentation() method (see Using the getPresentation function).
*The Template-based interface generator (see Using template-based interface generator for custom dataslots).

Using factory-type adapters

You can use a default or custom factory (a type of adapter) to create and initialize a custom dataslot that displays a complex object in a customized interface.
* Defining custom dataslots
* Using the getPresentation function
* Using template-based interface generator for custom dataslots