Open(Params: IMetabaseObjectParamValues): IMetabaseObjectInstance;
Params. Values of the parameters, which are used on opening the object.
The Open method opens the object and returns its data.
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:
If the object contains parameters, use the IMetabaseObjectParams.CreateEmptyValues method to specify parameter values.
If the object does not contain parameters, use the Null value.
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: