Skip to content

OnFindSuggestions - cWebBaseSelectionForm

Event called to fill a suggestion list

Type: Event

Parameters

Parameter Type Description
ByRef aItems tSelectionItem[] Array of suggestions to return to the client
ByRef bLast Boolean Set to True when all matching suggestions have been loaded
sFilter String Value typed by the user
prevItem tSelectionItem Previous item from the last loaded page of suggestions
iPage Integer Page number requested by the client

Syntax

Procedure OnFindSuggestions ByRef tSelectionItem[] aItems ByRef Boolean bLast String sFilter tSelectionItem prevItem Integer iPage

Description

OnFindSuggestions is called each time the control needs to load or refresh the suggestions shown in the popup. Fill aItems with tSelectionItem values that match sFilter.

Set bLast to True when no additional suggestions are available. If more suggestions can be loaded, leave bLast False so the control can offer a way to load more rows.

Procedure OnFindSuggestions tSelectionItem[] ByRef aItems Boolean ByRef bLast String sFilter tSelectionItem prevItem Integer iPage
    tSelectionItem Item

    Move "C001" to Item.sRowId
    Move "Data Access Worldwide" to Item.aValues[0]
    Move Item to aItems[0]

    Move True to bLast
End_Procedure

After suggestions are found, OnAddCustomActionButtons is called so custom action rows can be added to the popup.

See Also

OnAddCustomActionButtons | AddCustomActionButton