IEaxGrid.UpdateData

Syntax

UpdateData (Value: IDimSelectionSet; [Options: EaxGridUpdateDataOptions = 0]);

Parameters

Value. The selection to be updated.

Options. Update option.

Description

The UpdateData method determines whether the whole data area or its part is updated without rebuilding sidehead or heading.

Comments

To update a table area, use the IEaxGrid.RefreshPart property.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier.

Add links to the Dimensions, Express, Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    PivSlice: IEaxDataAreaSlice;
    Grid: IEaxGrid;
    SelSet: IDimSelectionSet;
    Sel: IDimSelection;
Begin
    
// Get repository
    MB := MetabaseClass.Active;
    
// Get regular report
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    
//Get analytical data area slice
    PivSlice := Report.DataArea.Slices.Item(0);
    
// Get table view
    Grid := PivSlice.Views.Item(0As IEaxGrid;
    
// Set slice selection
    SelSet := PivSlice.Selection.CreateCopy;
    
// Select all elements
    For Each Sel In SelSet Do
        Sel.SelectAll;
    
End For;
    
// Update access permissions
    Grid.UpdateData(SelSet, EaxGridUpdateDataOptions.DataRights);
    
// Save report
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, access permissions by the passed selection are updated.

See also:

IEaxGrid