IMetabaseCustomClass.ImplementationClass

Syntax

ImplementationClass: String;

Description

The ImplementationClass property determines the name of the class, in which the procedures for handling operations are implemented.

Comments

The specified class must be implemented in the object of the development environment, specified in the ImplementationAssembly property.

The class must contain implemented methods having the following structure:

Sub <HandlerIdentifier>(<Parameter>: IMetabaseObjectDescriptor);

If the parametric objects creating is planned, the methods with WithParams postfix and the following signature:

Sub <HandlerIdentifier>WithParams(<Parameter1>: IMetabaseObjectDescriptor; <Parameter2>: IMetabaseObjectParamValues);

On executing in the object navigator for the object of the custom class of some command the instance of the specified class will be initialized (Create constructor is called) and for the obtained instance of the class the appropriate method will be called. The description of the object for which the item of the context menu is selected will be passed in the parameter of the method.

On creating operations an identifier having handler method is generated for them. This identifier is specified in the table on the Operations tab. To process object standard operations, methods with the following reserved identifiers should be implemented in the class:

Operation name Method ID
Open OPEN (OPENWITHPARAMS to process parametric objects opening)
Edit EDIT (EDITWITHPARAMS to process parametric objects editing)
Delete DELETE
Paste PASTE

Example

The example of use is given in description of the Operations property.

See also:

IMetabaseCustomClass