Skip to content

OnSelectSuggestion - cWebSelectionForm

Called when the user selects a suggestion

Type: Event

Parameters

Parameter Type Description
Suggestion tSuggestion The selected suggestion

Syntax

Procedure OnSelectSuggestion tSuggestion Suggestion

Description

OnSelectSuggestion is called when the user selects a normal suggestion row from a cWebSelectionForm.

The Suggestion parameter contains the selected row id and values. For data-aware suggestions, the row id can be used to identify the selected record. For manually supplied suggestions, use the values you placed in the tSuggestion item.

Procedure OnSelectSuggestion tSuggestion Suggestion
    Forward Send OnSelectSuggestion Suggestion

    WebSet psValue of oSelectedCustomerName to Suggestion.aValues[0]
End_Procedure

See Also

cWebSelectionForm | OnFindSuggestions