Copy(Options: PrxSliceCopyOptions):IPrxSlice;
Options. Slice copying parameter.
The Copy method returns an object that contains a copy of the data slice.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
DtSources: IPrxDataSources;
Slices: IPrxSlices;
Slice, Slice1: IPrxSlice;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
DtSources := Report.DataSources;
Slices := DtSources.Item(0).Slices;
Slice := Slices.Item(0);
Slice1 := Slice.Copy(PrxSliceCopyOptions.All);
MObj.Save;
End Sub Main;
After executing the example the Slice1 variable contains a full copy of the first slice of the data source. The identifier of the regular report - Report.
See also: