PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Assisted input in a window
  • Assisted input in a window
  • Assisted input "in memory"
  • "Browsing" assisted input
  • Programmed assisted input
  • Principle
  • Assisted input "in memory"
  • How to?
  • Examples
  • "Browsing" assisted input
  • How to?
  • "Programmed" assisted input
  • How to?
  • Example
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 24 and later
Android This feature is now available for the Android applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 24
Android This feature is now available for the Android applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
Android This feature is now available for the Android applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
Windows Mobile
Assisted input in a window
Windows 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.
Windows 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.
Versions 24 and later
Android
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 (AssistedInputAdd). 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 (AssistedInputAdd). 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 (AssistedInputAdd). 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 AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, sTitle)
END
New in version 24
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, sTitle)
END
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, sName)
END
END
New in version 24
Android
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 (AssistedInputAdd). 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 (AssistedInputAdd). 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 (AssistedInputAdd). 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 AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, sTitle)
END
New in version 24
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, sTitle)
END
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, sName)
END
END
Android
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 (AssistedInputAdd). 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 (AssistedInputAdd). 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 (AssistedInputAdd). 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 AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, sTitle)
END
New in version 24
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, sTitle)
END
Android

Assisted input "in memory"

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure 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
AssistedInputConfigure(EDT_Find, aiMinSize, 3)
AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
 
FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
AssistedInputAdd(EDT_Find, 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 event "Declaration of global variables" or "End of initialization" of the window).
  • 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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 AssistedInputConfigure (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 event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, sName)
END
END
Principle
WINDEV, WINDEV Mobile and WEBDEV propose 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 (AssistedInputAdd). The data from the list is displayed according to the input.
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. The data from the list is displayed 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.
AndroidiPhone/iPadWindows Mobile Caution: In this version, assisted input is not available in simulator mode.
Assisted input "in memory"

How to?

To implement the assisted input "in memory":
  1. Use AssistedInputAdd to add the elements taken into account by the assisted input.
  2. If necessary, use AssistedInputConfigure to configure the characteristics of the assisted input: filter, list opening, number of characters typed before opening the list, ...

Examples

  • AndroidiPhone/iPadWindows Mobile Example for a window:
    // Code for window initialization end
    AssistedInputConfigure(EDT_Find, aiMinSize, 3)
    AssistedInputConfigure(EDT_Find, aiFilter, filterContains)
     
    FOR EACH STRING sTitle OF gsPhotoTitles SEPARATED BY CR
    AssistedInputAdd(EDT_Find, sTitle)
    END
"Browsing" assisted input

How to?

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 event "Declaration of global variables" or "End of initialization" of the window).
  • The display filter of the assisted input in a "Starts with" filter. To use another filter, you must use the programmed assisted input.
"Programmed" assisted input

How to?

The programmed assisted input is used to handle a custom data source.
To use the programmed assisted input:
  1. Disable the default filter with AssistedInputConfigure (using the filterNone constant). Therefore, the list for the assisted input can be opened and it will display all the specified elements.
  2. In the event "Whenever modified" 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
AssistedInputAdd(WIN_InMemory.EDT_Programmed_mode, 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..
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.
Minimum version required
  • Version 17
This page is also available for…
Comments
Auto Complete Personalizado
https://youtu.be/JDQOQyVbsfw
Mister ANDRE MARTINI
11 Sep. 2018