IDefaultBehaviour.TreatEmptySelectionAsFull

Syntax

TreatEmptySelectionAsFull: Boolean;

TreatEmptySelectionAsFull: boolean;

Description

In the TreatEmptySelectionAsFull property it is possible to consider empty selection as full on setting up behavior which will be used in the Foresight. Analytics Platform tools.

Comments

Available values:

Default value is False.

The TreatEmptySelectionAsFull property manages theTreat Empty Selection as Full checkbox state on the Behavior tab.

Example

To execute the example, add links to the system assemblies:

Sub UserProc;
Var
    Mb: IMetabase;
    SP: ISharedParams;
Begin
    
// Get the current repository
    Mb := MetabaseClass.Active;
    
// Set possibility to consider empty selection as full
    SP := Mb.SpecialObject(MetabaseSpecialObject.SharedParams).Edit As ISharedParams;
    SP.DefaultBehaviour.TreatEmptySelectionAsFull := 
True;
    (SP 
As IMetabaseObject).Save;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.KeFore;

Public Shared Sub Main(Params: StartParams);
Var     
    Mb: IMetabase;     
    SP: ISharedParams;
Begin
    
// Get the current repository
    Mb := Params.Metabase;     
    
// Set possibility to consider empty selection as full
    SP := Mb.SpecialObject[Prognoz.Platform.Interop.Metabase.MetabaseSpecialObject.msoSharedParams].Edit() As ISharedParams;
    SP.DefaultBehaviour.TreatEmptySelectionAsFull:= true;
    (SP As IMetabaseObject).Save();
End Sub;

After executing the example, in default settings the Treat Empty Selection as Full checkbox will be selected on the Behavior tab.

See also:

IDefaultBehaviour