IMetabaseObjectDescriptor.Open

Syntax

Open(Params: IMetabaseObjectParamValues): IMetabaseObjectInstance;

Parameters

Params. Values of the parameters, which are used on opening the object.

Description

The Open method opens the object and returns its data.

Comments

The Open method creates an object instance, but does not open it in the visual interface. Only forms can be opened in the graphic interface. To open other repository objects in the graphic interface, use the Object.Open command.

Value of the Params parameter depends on the following conditions:

Examples

Executing the example requires that the repository contains a form with the FORM identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
Begin
    // Get the current repository
    MB := MetabaseClass.Active;
    // Get form
    MObj := MB.ItemById("FORM").Bind;
    // Open form without parameters
    MObj.Open(Null);
End Sub UserProc;

After executing the example the form opens with the specified identifier and without parameters.

See also:

IMetabaseObjectDescriptor