IAdhocReport.AllowEditData

Fore Syntax

AllowEditData: Boolean;

Fore.NET Syntax

None;

Description

The AllowEditData property determines whether data can be edited in the Table visualizer.

Comments

Available values:

Fore Example

Executing the example requires that the repository contains a dashboard with the DASHBOARD identifier.

Add links to the Adhoc, Metabase system assemblies.

Sub SubAllowEditData;
Var
    mb: IMetabase;
    DashboardObj: IMetabaseObject;
    Dashboard: IAdhocReport;
Begin
    mb := MetabaseClass.Active;
    // Get dashboard
    DashboardObj := mb.ItemById("DASHBOARD").Edit;
    Dashboard := DashboardObj As IAdhocReport;
    // If data cannot be edited, enable data editing
    If Not Dashboard.AllowEditData Then
        Dashboard.AllowEditData := True;
    End If;
    // Save changes
    DashboardObj.Save;
End Sub SubAllowEditData;

After executing the example data editing is enabled in the dashboard in the Table visualizer.

See also:

IAdhocReport