OnProgress(Progress: Integer);
Progress - percent of data loading.
The OnProgress method implements event of the common status of data loading from cube to cube. This method must be redetermined in the custom class.
Executing the example requires a data loader with the Load_Data identifier configured to load data from cube to cube.
Public Class LoadData: Object, ICubeProgress
Sub OnProgress(Progress: Integer);
Begin
Debug.WriteLine(Progress);
End Sub OnProgress;
End Class LoadData;
Sub Main;
Var
MB: IMetabase;
CubeLoadInst: ICubeLoaderInstance;
Sel: IDimSelectionSet;
i: Integer;
c: LoadData;
Begin
MB := MetabaseClass.Active;
CubeLoadInst := MB.ItemById("Load_Data").Open(Null) As ICubeLoaderInstance;
Sel := CubeLoadInst.Destination.CreateDimSelectionSet;
For i := 0 To Sel.Count - 1 Do
Sel.Item(i).SelectAll;
End For;
c := New LoadData.Create;
CubeLoadInst.Execute(Sel, c);
End Sub Main;
After executing the example data, specified in the parameters of the Load_Data data loader, is loaded from cube to cube. Status of loading is traced in the LoadData custom class.
See also: