Object: IMetabaseObjectDescriptor;
The Object property returns description of edited model as a repository object.
Executing the example requires that the repository contains a form with the following:
Two ModelBox components with the ModelBox1 and ModelBox2 identifiers.
Two UiModel components with the UiModel1 and UiModel2 identifiers. The UiModel1 component is a data source for ModelBox1, and UiModel2 - for ModelBox2.
Add links to the Ms and Ui system assemblies.
The example is a handler of the OnEditObject event for the ModelBox1 component and is executed on clicking the Edit button or double-click on the equation on the Parameters panel of this component.
Sub ModelBox1OnEditObject(Sender: Object; Args: IModelBoxEditObjectEventArgs);
Begin
UiModel2.Object := Args.Object;
UiModel2.Active := True;
End Sub ModelBox1OnEditObject;
After executing the example the edited model will open in the ModelBox2 component.
See also: