Start of Content Area

Background documentation DateNavigator Locate the document in its SAP Library structure

The DateNavigator UI element enables users to display and enter dates. Its features include the ability to navigate in a calendar and choose a day, month, year, or range of dates. Primarily, this element should be used to help users to input dates in an appropriate format.

You can use the Structure linkDateNavigatorLegend and the Structure linkDateNavigatorMarking Element to add a legend for the description of selected data to the DateNavigator UI element. This enables you to provide the user with information on specific data that is assigned to a category. For example, events in the calendar can be highlighted in a different color and each event can be described with agenda, time, and location.

Example of the Visual Display

This graphic is explained in the accompanying text

Note

To enable the development of Structure linkaccessible applications, the accessibilityDescription property is checked during the syntax check if the tooltip property is not set.

The property accessibilityDescription applies to the entire DateNavigator and is read out by the screen readers if the DateNavigator itself is focused on. The tooltip is displayed for each day, except if this day has a marking and this contains a filled tooltip.

 

Runtime Class

CL_WD_DATE_NAVIGATOR

 

Properties in View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

Structure linkaccessibilityDescription

Translatable text

 

Yes

Structure linkenabled

WDY_BOOLEAN

true

Yes

Structure linkfirstDayOfWeek

WDUI_DAY_OF_WEEK

auto

Yes

Structure linkfirstSelectedDate

D

 

Yes

Structure linklastSelectedDate

D

 

Yes

Structure linklegendId

STRING

 

Yes

Structure linkmonthsPerColumn

I

1

Yes

Structure linkmonthsPerRow

I

3

Yes

Structure linkselectionMode

WDUI_DATE_SELECTION_MODE

single

Yes

Structure linkstartsWith

D

 

Yes

Structure linktooltip

Translatable text

 

Yes

Structure linkvisible

WDUI_VISIBILITY

visible

Yes

 

Aggregations in View Designer

Name

Cardinality

Type

Structure linkLegend

0..1

Structure linkDateNavigatorLegend

Structure linkSelection

0..1

Structure linkDateNavigatorMarking

 

Events in View Designer

Name

Structure linkonDaySelect

Structure linkonMonthSelect

Structure linkonStartDateChanged

Structure linkonWeekSelect

Note

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:

        Structure linkUIElement

        Structure linkViewElement

Dynamic Programming

For dynamic programming, the same properties, events and aggregations are available as in the View Designer. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

Structure linkaccessibilityDescription

ACCESSIBILITY_DESCR

WDY_MD_TRANSLATABLE_TEXT

Structure linkenabled

ENABLED

WDY_BOOLEAN

Structure linkfirstDayOfWeek

FIRST_DAY_OF_WEEK

WDUI_DAY_OF_WEEK

 firstDayOfWeek: auto

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-AUTO

 firstDayOfWeek: friday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-FRIDAY

 firstDayOfWeek: monday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-MONDAY

 firstDayOfWeek: saturday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-SATURDAY

 firstDayOfWeek: sunday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-SUNDAY

 firstDayOfWeek: thursday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-THURSDAY

 firstDayOfWeek: tuesday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-TUESDAY

 firstDayOfWeek: wednesday

CL_WD_DATE_NAVIGATOR=>E_FIRST_DAY_OF_WEEK-WEDNESDAY

Structure linkfirstSelectedDate

FIRST_SELECTED_DATE

D

Structure linklastSelectedDate

LAST_SELECTED_DATE

D

Structure linklegendId

LEGEND_ID

STRING

Structure linkmonthsPerColumn

MONTHS_PER_COLUMN

I

Structure linkmonthsPerRow

MONTHS_PER_ROW

I

Structure linkselectionMode

SELECTION_MODE

WDUI_DATE_SELECTION_MODE

 selectionMode: none

CL_WD_DATE_NAVIGATOR=>E_SELECTION_MODE-NONE

 selectionMode: range

CL_WD_DATE_NAVIGATOR=>E_SELECTION_MODE-RANGE

 selectionMode: single

CL_WD_DATE_NAVIGATOR=>E_SELECTION_MODE-SINGLE

Structure linkstartsWith

STARTS_WITH

D

Structure linktooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

Structure linkvisible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_DATE_NAVIGATOR=>E_VISIBLE-NONE

 visible: visible

CL_WD_DATE_NAVIGATOR=>E_VISIBLE-VISIBLE

 

Dynamic Programming of Events

View Designer Name

Runtime Name

Structure linkonDaySelect

ON_DAY_SELECT

Structure linkonMonthSelect

ON_MONTH_SELECT

Structure linkonStartDateChanged

ON_START_DATE_CHANGED

Structure linkonWeekSelect

ON_WEEK_SELECT

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

Structure linkLegend

LEGEND

0..1

Structure linkSelection

MARKING

0..1

Example

You can find examples of this interface element in the system in the Web Dynpro application WDR_TEST_UI_ELEMENTS, and in the component WDR_TEST_EVENTS in the View DateNavigator.

 

 

End of Content Area