OnProgress(Progress: Integer);
Progress. Data loading percent.
The OnProgress method implements event of the common status of data loading from cube to cube. This method must be redetermined in a 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 UserProc;
Var
MB: IMetabase;
CubeLoadInst: ICubeLoaderInstance;
SelS: IDimSelectionSet;
Sel: IDimSelection;
c: LoadData;
Begin
MB := MetabaseClass.Active;
CubeLoadInst := MB.ItemById("Load_Data").Open(Null) As ICubeLoaderInstance;
SelS := CubeLoadInst.Destination.CreateDimSelectionSet;
For Each Sel In SelS Do
Sel.SelectAll;
End For;
c := New LoadData.Create;
CubeLoadInst.Execute(SelS, c);
End Sub UserProc;
After executing the example, data specified in the parameters of the Load_Data data loader is loaded from cube to cube. Loading status is traced in the LoadData custom class.
See also: