Show contents 

Report > Report Assembly Interfaces > IPrxSliceDimension > IPrxSliceDimension.MoveFirst

IPrxSliceDimension.MoveFirst

Syntax

MoveFirst(Disposition: PrxHeaderDisposition);

Parameters

Disposition - slice header.

Description

The MoveFirst method moves the dimension to the first position of the specified slice header. Slice header is passed using the Disposition parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    Slices: IPrxSlices;
    SliceDims: IPrxSliceDimensions;
    SliceDim: IPrxSliceDimension;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("REPORT").Edit;
    Report := MObj As IPrxReport;
    DtSources := Report.DataSources;
    Slices := DtSources.Item(0).Slices;
    SliceDims := Slices.Item(0).Dimensions;
    SliceDim := SliceDims.Item(SliceDims.Count - 1);
    SliceDim.MoveFirst(PrxHeaderDisposition.Fixed);
    MObj.Save;
End Sub UserProc;

After executing the example the last dimension of the first slice of the data source is placed to the first position in the Fixed group. The identifier of the regular report - Report.

See also:

IPrxSliceDimension