
You can bind a UI element property (for example the property value of an InputField) to a Core Data Type (CDT). You can technically bind various UI elements to CDTs, but you should use the recommended ones.
For those UI elements Web Dynpro provides
For the different requirements of the respective CDT, Web Dynpro provides specialized UI elements.
Amount
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
The InputField is by default rendered in
Formatting Options
You can specify the currencyPresentationMode property of the InputField's value property:
| value | description | visual display |
|---|---|---|
|
code |
(default) |
|
|
displayOnlyCode |
The unit is displayed as TextView and as code. |
|
|
displayOnlyDescription |
The unit is displayed as TextView with full description |
|
|
none |
The unit is not displayed |
|
Code
Formatting Options
Suggest Values
For all fields of data type Code the values are suggested automatically if implemented in the ESR (Enterprise Service Repository).
Date
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField. The InputField is rendered with a DatePicker und looks like:
. The value is displayed according to the language/country specific formats.
Formatting Options
You can specify the format property of the InputField's value property:
DateTime
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
The InputField is rendered into
The value is displayed according to the language/country specific formats. The visual display looks like:
DateTime is not intended for direct use, there are different specializations:
Formatting Options
You can specify the following formatting options for a DateTime:
Description
For display only fields the recommended UI element is a TextView, for editable fields you should use a TextEdit. Language code has to be bound explicitly.
If the markupLanguageCode for a description is set and the value is set to XHTML , the TextEdit will be rendered into a FormattedTextEdit and the TextView is rendered into a FormattedTextView, so that the description can be displayed according the given formats.
Duration
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
Duration is provided in three differentiations:
full Duration
For each unit, a value is set, the value and the unit are displayed. The user can enter data using abbreviations, e. g. : 2 y 3 m 1 d 20 h 34 m 45 s .
This results in the following output:
2 Year(s) 3 Month(s) 1 Day(s) 20 Hour(s) 34 Minute(s) 45 Second(s).
Formatting Options
You can specify the smallestVisibleUnit for a Duration:
Duration time
A duration that is restricted to display hours, minutes and seconds.
Duration single unit
This duration is used to display single units, e. g.:
The given value is displayed in an InputField and the unit in a TextView beneath.
Identifier
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField. As value help OVS is provided.
Indicator
For display only fields the recommended UI element is a TextView, for editable fields you should use an CheckBox.
Measure
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
The InputField is rendered in two InputFields: one displays the numeric value and the other the unit of measurement.
Formatting Options
You can specify the unitPresentationMode property of the InputField's value property:
| value | description | visual display |
|---|---|---|
|
code |
(default): The unit is displayed in an input field. |
|
|
displayOnlyCode |
The unit is displayed as TextView and as code. |
|
|
displayOnlyDescription |
The unit is displayed as TextView and in full description |
|
|
none |
The unit is not displayed |
|
Name
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
Note
For display only fields the recommended UI element is a TextView, for editable fields you should use a TextEdit. Language code has to be bound explicitly.
If the markupLanguageCode for a description is set and the value is set to XHTML , the TextEdit will be rendered into a FormattedTextEdit and the TextView is rendered into a FormattedTextView, so that the description can be displayed according the given formats.
Numeric
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
Percent
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField. The visual display looks like:
Quantity
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
The InputField is rendered in
The visual display of a Quantity with unitPresentationMode is code looks like:
Formatting Options
You can specify the unitPresentationMode property of the InputField's value property:
Ratio/Rate
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
Text
For display only fields the recommended UI element is a TextView, for editable fields you should use a TextEdit. Language code has to be bound explicitly.
If the markupLanguageCode for a text is set and the value is set to XHTML , the TextEdit will be rendered into a FormattedTextEdit and the TextView into aFormattedTextView, so that the description can be displayed according the given formats.
Time
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField. The InputField is rendered into a ComboBox.
Formatting Options
You can specify the format property of the InputField's value property:
URI
URI can be used to represent data for email addresses, websites, and documents or information provided on websites. For display only fields the recommended UI element is a TextView or a LinkToURL, for editable fields you should use an InputField.
Value
For display only fields the recommended UI element is a TextView, for editable fields you should use an InputField.
on the right hand side.
More information
For a complete list of all supported units of measurement, for the type Amount, Measure, and Quantity: