Skip to content

ObjectStatus ​

Anzeige eines Status mit optionalem Icon, Titel und Indikationsfarbe – typisch für Zustände wie „In Bearbeitung", „Fehlerhaft" oder „Abgeschlossen" in Listen und Detailansichten.

Designer-Attribute ​

AttributBeschreibungDefault
controlIdEindeutige IDautomatisch generiert
textStatustext–
titleTitel/Beschriftung vor dem Statustext–
iconSAP-Icon-URL (z.B. sap-icon://status-positive)–
invertedFarbe gefüllt darstellen (invertiert)false
stateIndikationsfarbe. Werte: None, Indication01, Indication02, Indication03, Indication04, Indication05, Indication06, Indication07, Indication08, Indication09, Indication10, Indication11, Indication12, Indication13, Indication14, Indication15, Indication16, Indication17, Indication18, Indication19, Indication20None
visibleSichtbartrue
fontSizeSchriftgröße (CSS-Wert)–
colorVordergrundfarbe (Hex)–
backgroundColorHintergrundfarbe (Hex)–
spanS / spanM / spanL / spanXLBreite im Grid-Layout12

ABAP-API ​

Zugriff aus der gebundenen Klasse über den generischen Getter me->get_control( '<controlId>' ) (liefert eine /mobbuild/cl_control-Referenz). Attribute setzen Sie über die geerbten Methoden set_property_value* (siehe Control):

abap
DATA(lo_status) = me->get_control( 'statusOrder' ).
lo_status->set_property_value( iv_key = 'text'  iv_value = 'Abgeschlossen' ).
lo_status->set_property_value( iv_key = 'state' iv_value = 'Indication04' ).
lo_status->set_property_value( iv_key = 'icon'  iv_value = 'sap-icon://status-positive' ).

Geerbte Methoden: siehe Control.

Nächste Schritte ​