Cube.SaveToFile Command

Purpose

It opens a standard dialog box that is used to save a cube to a file.

Parameters of Use

None

Application Features

The command can be used only for platform cubes.

Example

Executing the example requires a form with the Button1 button and a repository object that is a cube with the CUBE_SEP identifier.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Mb: IMetabase;
    ObjDes: IMetabaseObjectDescriptor;
    Target: IUiCommandTarget;
Begin
    MB := MetabaseClass.Active;
    ObjDes := MB.ItemById("CUBE_SEP");
    Target := WinApplication.Instance.GetObjectTarget(ObjDes);
    Target.Execute("Cube.SaveToFile"Null);
End Sub Button1OnClick;

Clicking the button opens a standard dialog box for saving a cube with the CUBE_SEP identifier to a file.

See also:

IUiCommandTarget.Execute