Start of Content Area

Background documentation Threshold  Locate the document in its SAP Library structure

ViewElement

A Threshold represents the threshold value from which the color gradient of the bar changes for a ThresholdSlider. Thresholds can take on various colors and they influence the color of the bar and the bar tooltip if the slider is between this threshold and the next one.

 

Runtime Class

CL_WD_THRESHOLD

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

color

WDUI_TABLE_CELL_DESIGN

goodvalue_dark

Yes

showMarker

WDY_BOOLEAN

false

Yes

tooltip

Translatable text

 

Yes

value

I

0

Yes

 

Note

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

        ViewElement

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

color

COLOR

WDUI_TABLE_CELL_DESIGN

 color: badvalue_dark

CL_WD_THRESHOLD=>E_COLOR-BADVALUE_DARK

 color: badvalue_light

CL_WD_THRESHOLD=>E_COLOR-BADVALUE_LIGHT

 color: criticalvalue_dark

CL_WD_THRESHOLD=>E_COLOR-CRITICALVALUE_DARK

 color: five

CL_WD_THRESHOLD=>E_COLOR-FIVE

 color: goodvalue_dark

CL_WD_THRESHOLD=>E_COLOR-GOODVALUE_DARK

 color: goodvalue_medium

CL_WD_THRESHOLD=>E_COLOR-GOODVALUE_MEDIUM

 color: Selection

CL_WD_THRESHOLD=>E_COLOR-SELECTION

 color: subtotal_light

CL_WD_THRESHOLD=>E_COLOR-SUBTOTAL_LIGHT

 color: three

CL_WD_THRESHOLD=>E_COLOR-THREE

 color: total

CL_WD_THRESHOLD=>E_COLOR-TOTAL

showMarker

SHOW_MARKER

WDY_BOOLEAN

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

value

VALUE

I

 

Example

You can find an example of this UI element in the system in the WDR_TEST_THRESHOLD_SLIDER component.

 

 

 

End of Content Area