PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV, WEBDEV 24 feature!
  • Overview
  • Assisted input in a window
  • Programmed assisted input
  • Assisted input in a window
  • Assisted input "in memory"
  • "Browsing" assisted input
  • Programmed assisted input
  • Assisted input in a page
  • Assisted input "in memory"
  • "Browsing" assisted input
  • Programmed assisted input
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The principle of assisted input in an edit control is straightforward: when the user starts to type in an edit control, a list is automatically expanded below the control, proposing the values that start with the text currently typed.
The assisted input can be implemented from the editor or it can be customized by programming.
Versions 19 and later
WEBDEV - Server code This feature is now available for the WEBDEV sites.
WEBDEV - Server codePHP This feature is now available for the WEBDEV sites in PHP.
WEBDEV - Browser code This feature is now available in browser code.
New in version 19
WEBDEV - Server code This feature is now available for the WEBDEV sites.
WEBDEV - Server codePHP This feature is now available for the WEBDEV sites in PHP.
WEBDEV - Browser code This feature is now available in browser code.
WEBDEV - Server code This feature is now available for the WEBDEV sites.
WEBDEV - Server codePHP This feature is now available for the WEBDEV sites in PHP.
WEBDEV - Browser code This feature is now available in browser code.
Versions 24 and later
Android This feature is now available for the Android applications.
New in version 24
Android This feature is now available for the Android applications.
Android This feature is now available for the Android applications.
Assisted input in a window
WINDEVWindows Mobile Several types of assisted input are available:
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WINDEV manages the display of data in the list according to the input.
  • WINDEV Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
WINDEVWindows Mobile To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, the letters corresponding to an element found in the data file are automatically proposed.
WINDEV

Programmed assisted input

The programmed assisted input can be used on any edit control (linked or not to an item found in a data file).
To use the programmed assisted input:
  1. Initialize the list of elements taken into account by the assisted input via <Edit>.AddAssistedInput.
  2. In the "Whenever modified" process of the edit control:
Note: To highlight the terms typed by the user, you have the ability to use gPen and gFontBold.
Example:
// Clears the content of the previous assisted input
EDT_Cities.AssistedInputDeleteAll()
// Performs the search with the term typed ("NEW" for example)
HExecuteQuery(QRY_FindCity, hQueryDefault, "NEW")
// Browse the results
FOR EACH QRY_FindCity
// Builds the line to display
sValueFound = gFontBold(True) + gPen(LightRed) + "NEW" + ...
gFontBold(False) + gPen(Black)
// Adds the line to the assisted input
EDT_Cities.AssistedInputAdd(sValueFound)
END
 
Related Examples:
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.
Assisted input in a window
Versions 24 and later
Android WINDEV Mobile offers several types of assisted input for Android applications:
  • Assisted input "in memory": The edit control is not linked to an item found a data file. The automatic input is performed from a list of data supplied by programming (<Edit>.AddAssistedInput). WINDEV Mobile manages the display of data in the list according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WINDEV Mobile manages the display of data in the list according to the input.
  • Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
Caution: In this version, assisted input is not available in simulator mode.
New in version 24
Android WINDEV Mobile offers several types of assisted input for Android applications:
  • Assisted input "in memory": The edit control is not linked to an item found a data file. The automatic input is performed from a list of data supplied by programming (<Edit>.AddAssistedInput). WINDEV Mobile manages the display of data in the list according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WINDEV Mobile manages the display of data in the list according to the input.
  • Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
Caution: In this version, assisted input is not available in simulator mode.
Android WINDEV Mobile offers several types of assisted input for Android applications:
  • Assisted input "in memory": The edit control is not linked to an item found a data file. The automatic input is performed from a list of data supplied by programming (<Edit>.AddAssistedInput). WINDEV Mobile manages the display of data in the list according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WINDEV Mobile manages the display of data in the list according to the input.
  • Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
Caution: In this version, assisted input is not available in simulator mode.
Versions 24 and later
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use <Edit>.AddAssistedInput to add the elements taken into account by the assisted input.
  2. If necessary, use <Edit>.ConfigureAssistedInput to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...
Example:
// Code for window initialization end
EDT_Find.ConfigureAssistedInput(aiMinSize, 3)
EDT_Find.ConfigureAssistedInput(aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
EDT_Find.AssistedInputAdd(sTitle)
END
 
New in version 24
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use <Edit>.AddAssistedInput to add the elements taken into account by the assisted input.
  2. If necessary, use <Edit>.ConfigureAssistedInput to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...
Example:
// Code for window initialization end
EDT_Find.ConfigureAssistedInput(aiMinSize, 3)
EDT_Find.ConfigureAssistedInput(aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
EDT_Find.AssistedInputAdd(sTitle)
END
 
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use <Edit>.AddAssistedInput to add the elements taken into account by the assisted input.
  2. If necessary, use <Edit>.ConfigureAssistedInput to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...
Example:
// Code for window initialization end
EDT_Find.ConfigureAssistedInput(aiMinSize, 3)
EDT_Find.ConfigureAssistedInput(aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
EDT_Find.AssistedInputAdd(sTitle)
END
 
Versions 24 and later
Android

"Browsing" assisted input

To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, a list is displayed with the different data corresponding to the letter typed.
Notes:
  • If the edit control is linked to a query item, the query is automatically run. However, if this query expects parameters, you must specify them and run the query with HExecuteQuery (for example, in the "Declaration of global variables" process or in the "End of initialization" page process).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
New in version 24
Android

"Browsing" assisted input

To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, a list is displayed with the different data corresponding to the letter typed.
Notes:
  • If the edit control is linked to a query item, the query is automatically run. However, if this query expects parameters, you must specify them and run the query with HExecuteQuery (for example, in the "Declaration of global variables" process or in the "End of initialization" page process).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
Android

"Browsing" assisted input

To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, a list is displayed with the different data corresponding to the letter typed.
Notes:
  • If the edit control is linked to a query item, the query is automatically run. However, if this query expects parameters, you must specify them and run the query with HExecuteQuery (for example, in the "Declaration of global variables" process or in the "End of initialization" page process).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
Versions 24 and later
Android

Programmed assisted input

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with <Edit>.ConfigureAssistedInput (associated with the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. In the "Whenever modified" process of the edit control:
Example:
// "Contains" search performed in the name
// and code of an array of stock shares
 
FOR EACH sName, sCode of gArrShare
IF Contains(sCode, EDT_Programmed_mode) _OR_ ...
Contains(sName, EDT_Programmed_mode) THEN
SAI_Programmed_mode.AssistedInputAdd(sName)
END
END
 
New in version 24
Android

Programmed assisted input

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with <Edit>.ConfigureAssistedInput (associated with the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. In the "Whenever modified" process of the edit control:
Example:
// "Contains" search performed in the name
// and code of an array of stock shares
 
FOR EACH sName, sCode of gArrShare
IF Contains(sCode, EDT_Programmed_mode) _OR_ ...
Contains(sName, EDT_Programmed_mode) THEN
SAI_Programmed_mode.AssistedInputAdd(sName)
END
END
 
Android

Programmed assisted input

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with <Edit>.ConfigureAssistedInput (associated with the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. In the "Whenever modified" process of the edit control:
Example:
// "Contains" search performed in the name
// and code of an array of stock shares
 
FOR EACH sName, sCode of gArrShare
IF Contains(sCode, EDT_Programmed_mode) _OR_ ...
Contains(sName, EDT_Programmed_mode) THEN
SAI_Programmed_mode.AssistedInputAdd(sName)
END
END
 
WEBDEV - Server codeWEBDEV - Browser codePHPAjax
Assisted input in a page
Versions 19 and later
WEBDEV - Server codeWEBDEV - Browser codePHPAjax WEBDEV proposes several types of assisted input:
  • Assisted input "in memory": The edit control is not linked to an item found a data file. The automatic input is performed from a list of data supplied by programming (<Edit>.AddAssistedInput). WEBDEV manages the display of data in the list according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WEBDEV manages the display of data in the list according to the input.
  • Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
New in version 19
WEBDEV - Server codeWEBDEV - Browser codePHPAjax WEBDEV proposes several types of assisted input:
  • Assisted input "in memory": The edit control is not linked to an item found a data file. The automatic input is performed from a list of data supplied by programming (<Edit>.AddAssistedInput). WEBDEV manages the display of data in the list according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WEBDEV manages the display of data in the list according to the input.
  • Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax WEBDEV proposes several types of assisted input:
  • Assisted input "in memory": The edit control is not linked to an item found a data file. The automatic input is performed from a list of data supplied by programming (<Edit>.AddAssistedInput). WEBDEV manages the display of data in the list according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WEBDEV manages the display of data in the list according to the input.
  • Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.
Versions 19 and later
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use <Edit>.AddAssistedInput to add the elements taken into account by the assisted input.
  2. If necessary, use <Edit>.ConfigureAssistedInput to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...
Example:
// Load code of the page
EDT_Find.ConfigureAssistedInput(aiMinSize, 3)
EDT_Find.ConfigureAssistedInput(aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
EDT_Find.AssistedInputAdd(sTitle)
END
 
New in version 19
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use <Edit>.AddAssistedInput to add the elements taken into account by the assisted input.
  2. If necessary, use <Edit>.ConfigureAssistedInput to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...
Example:
// Load code of the page
EDT_Find.ConfigureAssistedInput(aiMinSize, 3)
EDT_Find.ConfigureAssistedInput(aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
EDT_Find.AssistedInputAdd(sTitle)
END
 
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use <Edit>.AddAssistedInput to add the elements taken into account by the assisted input.
  2. If necessary, use <Edit>.ConfigureAssistedInput to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...
Example:
// Load code of the page
EDT_Find.ConfigureAssistedInput(aiMinSize, 3)
EDT_Find.ConfigureAssistedInput(aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
EDT_Find.AssistedInputAdd(sTitle)
END
 
Versions 19 and later
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

"Browsing" assisted input

To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, a list is displayed with the different data corresponding to the letter typed.
Notes:
  • If the edit control is linked to a query item, the query is automatically run. However, if this query expects parameters, you must specify them and run the query with HExecuteQuery (in the "Declaration of global variables" process or in the "Initialization" process of the page for example).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
New in version 19
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

"Browsing" assisted input

To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, a list is displayed with the different data corresponding to the letter typed.
Notes:
  • If the edit control is linked to a query item, the query is automatically run. However, if this query expects parameters, you must specify them and run the query with HExecuteQuery (in the "Declaration of global variables" process or in the "Initialization" process of the page for example).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

"Browsing" assisted input

To implement the "Browsing" assisted input:
  1. In the description window of edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of edit control.
At run time, as soon as the first letter is typed in the control, a list is displayed with the different data corresponding to the letter typed.
Notes:
  • If the edit control is linked to a query item, the query is automatically run. However, if this query expects parameters, you must specify them and run the query with HExecuteQuery (in the "Declaration of global variables" process or in the "Initialization" process of the page for example).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
Versions 19 and later
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Programmed assisted input

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with <Edit>.ConfigureAssistedInput (associated with the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. Add the optional "Key down" or "Key up" browser process to the edit control.
  3. In this process, run the code of an Ajax button with ExecuteProcess. This process will update the list proposed by the assisted input by performing the following operations:
Example:
// "Contains" search performed in the name
// and code of an array of stock shares
FOR EACH sName, sCode of gArrShare
IF Contains(sCode, sSoughtValue) _OR_ ...
Contains(sName, sSoughtValue) THEN
SAI_Programmed_mode.AssistedInputAdd(sName)
END
END
 
New in version 19
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Programmed assisted input

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with <Edit>.ConfigureAssistedInput (associated with the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. Add the optional "Key down" or "Key up" browser process to the edit control.
  3. In this process, run the code of an Ajax button with ExecuteProcess. This process will update the list proposed by the assisted input by performing the following operations:
Example:
// "Contains" search performed in the name
// and code of an array of stock shares
FOR EACH sName, sCode of gArrShare
IF Contains(sCode, sSoughtValue) _OR_ ...
Contains(sName, sSoughtValue) THEN
SAI_Programmed_mode.AssistedInputAdd(sName)
END
END
 
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Programmed assisted input

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with <Edit>.ConfigureAssistedInput (associated with the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. Add the optional "Key down" or "Key up" browser process to the edit control.
  3. In this process, run the code of an Ajax button with ExecuteProcess. This process will update the list proposed by the assisted input by performing the following operations:
Example:
// "Contains" search performed in the name
// and code of an array of stock shares
FOR EACH sName, sCode of gArrShare
IF Contains(sCode, sSoughtValue) _OR_ ...
Contains(sName, sSoughtValue) THEN
SAI_Programmed_mode.AssistedInputAdd(sName)
END
END
 
Related Examples:
Photo_Gallery Complete examples (WEBDEV): Photo_Gallery
[ + ] This example is a site of photo gallery and it includes 2 main sections:
- the "visitor" section, developed in AWP mode therefore referenceable.
- the management section, developed in standard WEBDEV mode therefore secured.  
 
Among the available features, you will find:
- an organization of your photos by album
- different modes for presentation the photos: slide show mode, scroll mode, detailed mode
- a link to the social networks
- the ability for the visitors to comment your publications
- a contact form
- for the site management, you have the ability to upload your photos, to describe them, to turn them around, to encrust a watermark..
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment