IPrxControl.RecalcSliceOnly

Syntax

RecalcSliceOnly: Boolean;

Description

The RecalcSliceOnly property determines whether visualizers of the slice, which dimension is specified as control dimension, are calculated when the control value changes.

Comments

Using the property requires that the IPrxControl.RecalcOnChange property is set to True.

Available values:

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. A data source and at least one control, for which controlled dimension is specified, are added to the report.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
Begin
    // Get repository
    Mb := MetabaseClass.Active;
    
// Get report
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    
// Get collection of report controls
    Contrls := Report.Controls;
    
// Get control
    Contrl := Contrls.Item(0);
    
// Determine report calculation settings
    Contrl.RecalcOnChange := True;
    Contrl.RecalcSliceOnly := 
True;
    
// Save report
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the When Value is Changed, Calculate checkbox and the Only Bound Slice option is selected.

See also:

IPrxControl