Edits object properties.
None
The command can be used only for the objects supporting editing. The command cannot be executed for forms and unit in debugging mode in the development environment.
Depending on the object type, the object is edited with appropriate platform tool.
Executing the example requires a form with the Button1 button and a repository object with the Table_1 identifier, which should support the editing mode.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
ObjDes: IMetabaseObjectDescriptor;
Target: IUiCommandTarget;
Begin
MB := MetabaseClass.Active;
ObjDes := MB.ItemById("Table_1");
Target := WinApplication.Instance.GetObjectTarget(ObjDes);
Target.Execute("Object.Edit", Null);
End Sub Button1OnClick;
Clicking the button opens the object with the Table_1 identifier for edit.
See also: