ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Assisted input functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a row to the list of values available in the input suggestions of an Edit control.
Example
AssistedInputDeleteAll(EDT_Direction)
AssistedInputAdd(EDT_Direction, "Left")
AssistedInputAdd(EDT_Direction, "Left to the top")
AssistedInputAdd(EDT_Direction, "Left to the bottom")
AssistedInputAdd(EDT_Direction, "Right")
AssistedInputAdd(EDT_Direction, "Right to the top")
AssistedInputAdd(EDT_Direction, "Right to the bottom")
AssistedInputAdd(EDT_Direction, "Center")
AssistedInputOpen(EDT_Direction)
// Control initialization code
AssistedInputAdd(EDT_Edit1, "Displayed value")

// Edit control exit code
Trace(EDT_Edit1.Value) 
// Returns the value of the control
// 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"
PROCÉDURE Selection(MySelection is AssistedInput)
EDT_PostalCode = MySelection.StoredValue
Syntax

Adding a row to the list of values available in the input suggestions Hide the details

<Result> = AssistedInputAdd(<Edit control> , <Text> [, <Stored value>])
<Result>: Integer
Number of the added row.
<Edit control>: Control name
Name of the Edit control to be used. The "Input suggestions" option is automatically enabled on this control.
<Text>: Character string
Value to be added to the input suggestions.
<Stored value>: Type of value
Stored value associated with the added value.

Adding a row (AssistedInput variable) to the list of available values Hide the details

<Result> = AssistedInputAdd(<Edit control> , <Suggestion>)
<Result>: Integer
Number of the added row.
<Edit control>: Control name
Name of the Edit control to be used. The "Input suggestions" option is automatically enabled on this control.
<Suggestion>: AssistedInput variable
Name of the AssistedInput variable containing the value of the suggestion to be added.
Remarks
To open the list with the different options:
  • the user can enter a value in the Edit control (starting with the letters of one of the available options).
  • programmatically, you can use AssistedInputOpen. It is recommended to filter the list of values and open it from the "Whenever modifying" event of the Edit control.
Related Examples:
Photo_Gallery Complete examples (WEBDEV): Photo_Gallery
[ + ] This example is a photo gallery site and is composed of 2 main parts:
- the "visitor" part, developed in Active WEBDEV Page mode and SEO-compatible.
- the administration part, secured and developed in standard WEBDEV mode.  
 
These are some of the available features:
- organize photos via albums
- include links to social networks
- enable users to comment on posts
- user login via WEBDEV'S GPU
- contact form
- ability to upload, describe, and classify photos via albums on the administration side
The AssistedInput functions Unit examples (WINDEV): The AssistedInput functions
[ + ] Using the WLanguage AssistedInput functions.
These functions are used to easily implement an assisted input on the controls.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
exemplo AssistedInputAdd
// EXEMPLO 2 LER CLIENTES, E USAR O ASSISTED
HExecuteQuery(QRY_relacao_clientes,hQueryDefault)
AssistedInputDeleteAll ( EDT_Direction )
FOR EACH QRY_relacao_clientes
AssistedInputAdd ( EDT_Direction , QRY_relacao_clientes.nome )
END
AssistedInputOpen ( EDT_Direction )
ReturnToCapture(EDT_Direction)
// blog e video com exemplos
http://windevdesenvolvimento.blogspot.com.br/2018/01/inscricao-para-grupo-privado-amarildo.html
http://windevdesenvolvimento.blogspot.com.br/2018/02/dicas-1664-publico-video-dicas-68.html
https://youtu.be/r_O1GyQR5qQ

De matos
05 Feb. 2018

Last update: 02/28/2024

Send a report | Local help