The
AssistedInput type allows you to define all the advanced characteristics of an autocomplete suggestion. The characteristics of this suggestion can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
// Add a suggestion
_AutocompleteSuggestion is AssistedInput
_AutocompleteSuggestion.Caption = "Alpharetta, GA 30022"
_AutocompleteSuggestion.StoredValue = 30022
AssistedInputAdd(EDT_PostalCode, _AutocompleteSuggestion)
// -- Event "Select a value in the list of input suggestions"
PROCEDURE Selection(MySelection is AssistedInput)
EDT_PostalCode = MySelection.StoredValue
Properties
Properties specific to the description of AssistedInput variables
The following properties can be used to handle autocomplete suggestions:
| | |
Property name | Type used | Effect |
---|
Caption | Character string | Text displayed in the autocomplete suggestion. |
StoredValue | All types | Value stored for the autocomplete suggestion. The developer can use this value to store information. |
Remarks
Using AssistedInput variables
An AssistedInput variable can be:
- used with AssistedInputAdd.
- passed as parameter in the "Select a value in the list of input suggestions" event.