Open(Params: IMetabaseObjectParamValues): IMetabaseObjectInstance;
Params. Values of the parameter, which is used on opening the object. If the object has no parameters, the Null value should be passed.
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 will be opened in visual interface. To open visual interface of other repository objects, use the following command: Object.Open.
On opening parametric objects, the collection to specify parameter values can be obtained using the IMetabaseObjectParams.CreateEmptyValues method.
Executing the example requires that the repository contains a form with the Form_open identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Form_open").Bind;
MObj.Open(Null);
End Sub UserProc;
After executing the example the query with the specified values of parameters is opened. Values of the first data column received while execution of the query are displayed in the development environment console.
See also: