InputTokenizer
You use the InputTokenizer UI element for input fields in which you want to convert inputted data into tokens.
InputTokenizer corresponds to InputField, but in addition enables you to convert input using the linked input help (property inputHelp). For example, you can convert a GUID or number into a meaningful text (token).
Example
You can use the InputTokenizer for an address field linked to an address book. While the user inputs data, the system suggests values from the address book (property valueSuggest). If the user selects a value from the input help, the onEnter event is triggered immediately and replaces the input with the token text.Implementation Details
|
Runtime Class |
CL_WD_INPUT_TOKENIZER |
Properties in View Designer
|
Name |
Type |
Initial Value |
Bindable |
|---|---|---|---|
|
STRING |
(automatic) |
No |
|
|
WDUI_CONTEXT_MENU_BEHAVIOUR |
inherit |
No |
|
|
WDY_MD_UI_ELEMENT_REFERENCE |
No |
||
|
Context node |
Mandatory |
||
| WDY_BOOLEAN |
true |
Yes |
|
|
Translatable text |
No |
||
| WDY_BOOLEAN |
false |
Yes |
|
|
WDUI_IMEMODE |
auto |
Yes |
|
|
WDUI_INPUTHELP |
auto |
Yes |
|
|
Translatable text |
Yes |
||
|
WEUI_TOKEN_OVERFLOW |
push |
Yes |
|
| WDY_BOOLEAN |
false |
Yes |
|
| STRING | Yes | ||
|
WDUI_TEXT_DIRECTION |
inherit |
Yes |
|
|
Translatable text |
Yes |
||
|
Translatable text |
Yes |
||
|
WDY_BOOLEAN |
true |
Yes |
|
|
Translatable text |
Yes |
||
|
Translatable text |
Mandatory |
||
|
WDY_BOOLEAN |
false |
Yes |
|
|
WDUI_VISIBILITY |
visible |
Yes |
|
|
STRING |
Yes |
Dynamic Programming
For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. But note that the spelling format and use of upper/lower case is different.
Dynamic Programming of Properties
|
View Designer Name |
View Designer Name |
Type |
|---|---|---|
|
contextMenuBehaviour |
CONTEXT_MENU_BEHAVIOUR |
WDUI_CONTEXT_MENU_BEHAVIOUR |
|
contextMenuBehaviour: inherit |
CL_WD_INPUT_TOKENIZER=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT |
|
|
contextMenuBehaviour: provide |
CL_WD_INPUT_TOKENIZER=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE |
|
|
contextMenuBehaviour: suppress |
CL_WD_INPUT_TOKENIZER=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS |
|
|
contextMenuId |
CONTEXT_MENU_ID |
WDY_MD_UI_ELEMENT_REFERENCE |
|
dataSource |
DATA_SOURCE |
OBJECT |
|
enabled |
ENABLED |
WDY_BOOLEAN |
|
explanation |
EXPLANATION |
WDY_MD_TRANSLATABLE_TEXT |
|
historySuggest |
HISTORY_SUGGEST |
WDY_BOOLEAN |
|
imeMode |
IME_MODE |
WDUI_IMEMODE |
|
imeMode: active |
CL_WD_INPUT_TOKENIZER=>E_IME_MODE-ACTIVE |
|
|
imeMode: auto |
CL_WD_INPUT_TOKENIZER=>E_IME_MODE-AUTO |
|
|
imeMode: disabled |
CL_WD_INPUT_TOKENIZER=>E_IME_MODE-DISABLED |
|
|
imeMode: inactive |
CL_WD_INPUT_TOKENIZER=>E_IME_MODE-INACTIVE |
|
|
inputHelp |
INPUT_HELP |
WDUI_INPUTHELP |
|
inputHelp: auto |
CL_WD_INPUT_TOKENIZER=>E_INPUT_HELP-AUTO |
|
|
inputHelp: calculator |
CL_WD_INPUT_TOKENIZER=>E_INPUT_HELP-CALCULATOR |
|
|
inputHelp: none |
CL_WD_INPUT_TOKENIZER=>E_INPUT_HELP-NONE |
|
|
inputHelp: search |
CL_WD_INPUT_TOKENIZER=>E_INPUT_HELP-SEARCH |
|
|
inputPrompt |
INPUT_PROMPT |
WDY_MD_TRANSLATABLE_TEXT |
|
readOnly |
READ_ONLY |
WDY_BOOLEAN |
|
styleClassName |
STYLE_CLASS_NAME |
STRING |
|
textDirection |
TEXT_DIRECTION |
WDUI_TEXT_DIRECTION |
|
textDirection: inherit |
CL_WD_INPUT_TOKENIZER=>E_TEXT_DIRECTION-INHERIT |
|
|
textDirection: ltr |
CL_WD_INPUT_TOKENIZER=>E_TEXT_DIRECTION-LTR |
|
|
textDirection: rtl |
CL_WD_INPUT_TOKENIZER=>E_TEXT_DIRECTION-RTL |
|
|
tokenText |
TOKEN_TEXT |
WDY_MD_TRANSLATABLE_TEXT |
|
tokenTooltip |
TOKEN_TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
tokenValid |
TOKEN_VALID |
WDY_BOOLEAN |
|
tooltip |
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
value |
VALUE |
WDY_MD_TRANSLATABLE_TEXT |
|
valueSuggest |
VALUE_SUGGEST |
WDY_BOOLEAN |
|
visible |
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_INPUT_TOKENIZER=>E_VISIBLE-NONE |
|
|
visible: visible |
CL_WD_INPUT_TOKENIZER=>E_VISIBLE-VISIBLE |
|
|
width |
WIDTH |
v |
Dynamic Programming of Events
|
View Designer Name |
Runtime Name |
|---|---|
|
onDelete |
ON_DELETE |
|
onDoubleClick |
ON_DOUBLECLICK |
|
onDrop |
ON_DROP |
|
onEnter |
ON_ENTER |
|
onSelect |
ON_SELECT |
Example
You can find examples in the system in Web Dynpro application WDR_DEMO_EMAIL.