IDimensionViewer.EndDate

Syntax

EndDate: DateTime;

Description

The EndDate property determines the period end of data range.

Comments

It is used on working with selection of elements of calendar dimension in the By Levels Only».

Example

Executing the example requires the following components on the form: Button named Button1, DimensionTree named DimensionTree1 and UiDimension named UiDimension1. A calendar dictionary is selected as a data source for UiDimension, and UiDimension1 is selected as a data source for DimensionTree.

Add a link to the ExtCtrls system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    DimensionTree1.ModeElements := False;
    DimensionTree1.ModeLevels := True;
    DimensionTree1.StartDate := DateTime.ComposeDay(200422);
    DimensionTree1.EndDate := DateTime.ComposeDay(201422);
End Sub Button1OnClick;

After executing the example, the By Levels Only selection mode is enabled for calendar, and the element selection period is set.

See also:

IDimensionViewer