Show TOC

CheckBox PropertiesLocate this document in the navigation structure

Use
  • displayOnly

    Specifies whether the user can edit the UI element or only display it.

    This property has almost the same function as readOnly. The differences are that the background of UI elements is white instead of gray, and any required asterisk is no longer displayed on the label after activation.

    The following figure shows this difference, using the RadioButton UI element as an example:

    This property can be personalized by administrators. In personalization, this property can be assigned the value: true

Caution

If you use displayOnly with the following UI elements, not all properties are supported.

The supported properties are listed below:

  • displayOnly for the UI element InputField:

    If you use displayOnly for the UI element InputField, only the following properties are supported:

  • displayOnly for the UI element DropDownByIndex or DropDownByIndex:

    If you use displayOnly for UI elements DropDownByIndex and DropDownByIndex, only the following properties are supported:

Note
  • If both displayOnly = true and readOnly = true are used, the UI element is displayed in displayOnly- style.

  • A TextView is rendered for UI elements InputField, DropDownByKey, DropDownByIndex, and DropDownListBox if displayOnly = true.

  • Property displayOnly does not function in ToolBar elements.

  • If displayOnly = true is set for UI elements DropDownByIndex, DropDownByKey, DropDownListBox, and InputField, multiple neighboring blank characters may be compressed to one single blank character when you run the application in Internet Explorer. The problem occurs in quirks mode with all IE versions and in standard mode with IE8 and smaller.

Note

The explanation iproperty is only displayed if a Label exists for the corresponding UI element.

Note the following exception:

The explanation property of an AbstractTableColumn is always displayed. If the UI element appears in a Table, and therefore has no Label, then use a AbstractTableColumn.explanation as a replacement for an explanation for the respective UI element (for example, InputField).

  • readOnly

    Specifies whether the user can select the CheckBox or whether it only is to be displayed as read-only.

    This property can be personalized by administrators. In personalization, this property can be assigned the value: true

  • state

    Error status of the interface element. Read the note about the required asterisk for a Label in FormLayout under TTruncating Contents in the FormLayout.

    This property can be personalized by administrators.

    Value

    Example of the Visual Display

    Description

    Can be Set Using Personalization

    normal

    CheckBox.state = normal

    Normal status of the interface element

    No

    required

    CheckBox.state = required

    The value must be entered. The CheckBox is displayed with a star.

    Note

    This value of thestate property is not checked by Web Dynpro Framework. Service functions are still available for checking required entries, see also SAP Note 948753 Information published on SAP site.

    Yes

  • text

    Label text that is displayed as the explanatory text within the CheckBox.

    This property can be personalized by administrators.

  • textDesign

    This property defines the appearance of the text of a UI element.

    Value

    Description

    standard

    Default Value

    emphasized

    The text is emphasized.

    The following figure shows the text of a radio button if the value is emphasized, that is, the text is emphasized:

Note

For the UI elements RadioButton, CheckBox, and TriStateCheckBox, textDesign is set for the respective text of the corresponding UI element.

For the UI elements RadioButtonGroupByIndex, RadioButtonGroupByKey, and CheckBoxGroup, textDesign is set for the text of all radio buttons and checkboxes contained in the group. This means that the value of textDesign is passed on to these elements. It is not possible to set different values for different radio buttons or checkboxes in a group.

  • textWrapping

    Value

    Description

    false

    Default Value

    true

    The text is wrapped (see figure).

    The following figure shows the text of a checkbox if the value is true, that is, the text is wrapped:

Note

For the UI elements RadioButton, CheckBox, and TriStateCheckBox, textWrapping is set for the respective text of the corresponding UI element.

For the UI elements RadioButtonGroupByIndex, RadioButtonGroupByKey, and CheckBoxGroup, textWrapping is set for the text of all radio buttons and checkboxes contained in the group. This means that the value of textWrapping is passed on to these elements. It is not possible to set different values for different radio buttons or checkboxes in a group.