Start of Content Area

Background documentation TriStateCheckBox Locate the document in its SAP Library structure

This UI element is similar to a CheckBox, with the difference that the clicked on status is variable:

      Option can be activated (selected)

      Option cannot be activated (not selected)

      Option is unspecified

Examples of the Display

Selected

Not Selected

Not Specified

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_TRI_STATE_CHECKBOX

 

Properties in View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

Structure linkchecked

WDUI_TRI_STATE

true

Mandatory

Structure linkenabled

WDY_BOOLEAN

true

Yes

Structure linkexplanation

Translatable text

 

No

Structure linkreadOnly

WDY_BOOLEAN

false

Yes

Structure linkstate

WDUI_STATE

normal

Yes

Structure linktext

Translatable text

 

Yes

Structure linktextDirection

WDUI_TEXT_DIRECTION

inherit

Yes

Structure linktooltip

Translatable text

 

Yes

Structure linkvisible

WDUI_VISIBILITY

visible

Yes

 

Events in View Designer

Name

Structure linkonToggle

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 linkchecked

CHECKED

WDUI_TRI_STATE

 checked: false

CL_WD_TRI_STATE_CHECKBOX=>E_CHECKED-FALSE

 checked: true

CL_WD_TRI_STATE_CHECKBOX=>E_CHECKED-TRUE

 checked: undecided

CL_WD_TRI_STATE_CHECKBOX=>E_CHECKED-UNDECIDED

Structure linkenabled

ENABLED

WDY_BOOLEAN

Structure linkexplanation

EXPLANATION

WDY_MD_TRANSLATABLE_TEXT

Structure linkreadOnly

READ_ONLY

WDY_BOOLEAN

Structure linkstate

STATE

WDUI_STATE

 state: normal

CL_WD_TRI_STATE_CHECKBOX=>E_STATE-NORMAL

 state: required

CL_WD_TRI_STATE_CHECKBOX=>E_STATE-REQUIRED

Structure linktext

TEXT

WDY_MD_TRANSLATABLE_TEXT

Structure linktextDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_TRI_STATE_CHECKBOX=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_TRI_STATE_CHECKBOX=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_TRI_STATE_CHECKBOX=>E_TEXT_DIRECTION-RTL

Structure linktooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

Structure linkvisible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_TRI_STATE_CHECKBOX=>E_VISIBLE-NONE

 visible: visible

CL_WD_TRI_STATE_CHECKBOX=>E_VISIBLE-VISIBLE

 

Dynamic Programming of Events

View Designer Name

Runtime Name

Structure linkonToggle

ON_TOGGLE

 

 

End of Content Area