PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 into the list of values available for the assisted input 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)
New in version 28
AssistedInputAdd(SAI_Saisie1, "Valeur affichée" + gLink("Valeur mémorisée"))
Trace(SAI_Saisie1.ValeurMémorisée)
//Renvoie "valeur mémorisée" si on sélectionne la ligne
 
AssistedInputAdd(SAI_Saisie1, "Valeur affichée", "Valeur mémorisée")
Trace(SAI_Saisie1.ValeurMémorisée)
// Renvoie "valeur mémorisée" si on sélectionne la ligne
// Ajout d'un ligne
_sa is AssistedInput
_sa.Caption = "34300(Agde)"
_sa.StoredValue = 343300
AssistedInputAdd(SAI_CP, _sa)
 
// -- Evénement "Sélection d'une valeur dans la liste de saisie assistée"
PROCÉDURE Sélection(MaSélection is AssistedInput)
SAI_CP = MaSélection.ValeurMémorisée
Syntax

Adding an row to the list of values available for assisted entry Hide the details

<Result> = AssistedInputAdd(<Edit control> , <Text> [, <Stored value>])
<Result>: entier
Number of the added row.
<Edit control>: Control name
Name of the Edit control to be used. The "assisted input" option is automatically enabled on this control.
<Text>: Character string
Value that must be added to the suggestions of the assisted input.
<Stored value>: Type of value
New in version 28
Stored value associated with the added value.
PHP This parameter is not available.
New in version 28

Add an row (variable of type AssistedInput) in the list of available values Hide the details

<Result> = AssistedInputAdd(<Edit control> , <Row of assisted entry>)
<Result>: entier
Number of the added row.
<Edit control>: Control name
Name of the Edit control to be used. The "assisted input" option is automatically enabled on this control.
<Row of assisted entry>: Variable type AssistedInput
Name of the Variable of type AssistedInput containing the details of the row to be added in the list of assisted entry.
Remarks
To open the list proposing the different choices:
  • the user can enter a value in the edit control (starting with the letters of one of the proposed choices).
  • through programming, you have the ability to use AssistedInputOpen. It is recommended to filter the list of values and to open it from the "Whenever modified" 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: wd280obj.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