IBindingDimCombo.Period

Fore Syntax

Period: Boolean;

Fore.NET Syntax

Period: boolean;

Description

The Period property determines value of the PERIOD parameter in binding string.

Comments

The MODELEVELS parameter determines the Range menu display to set up period limits in theOnly by Levels selection mode.

Fore Example

Executing the example requires a calendar dictionary with the CALENDAR identifier.

Function CreateDimComboBinding(Dimension: IMetabaseObjectDescriptor): String;
Var
    BM: IBindingManager;
    DimComboBinding: IBindingDimCombo;
    
Begin
        BM := 
New BindingManager.Create;
        DimComboBinding := BM.CreateByUi("DimCombo"As IBindingDimCombo;
        DimComboBinding.Object := 
"CALENDAR";
        
        
DimComboBinding.PeriodDefined := True;
        
DimComboBinding.Period := True;
        Return DimComboBinding.AsString;
End Function CreateDimComboBinding;

The function generates a binding string to use value editor as a dictionary drop-down list. The editor will display the Range menu to set period limits in the Only by Levels selection mode.

Fore.NET Example

The requirements and result of the Fore.NET example executing match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;

Function CreateDimComboBinding(Dimension: IMetabaseObjectDescriptor): String;
Var
    BM: IBindingManager;
    DimComboBinding: IBindingDimCombo;
Begin
    BM := 
New BindingManager.Create();
    DimComboBinding := BM.CreateByUi("DimCombo"As IBindingDimCombo;
    DimComboBinding.Object := 
"CALENDAR";

    DimComboBinding.PeriodDefined := 
True;
    DimComboBinding.Period := 
True;
    Return DimComboBinding.AsString;
End Function CreateDimComboBinding;

See also:

IBindingDimCombo