Skip to content

OnSelectSuggestion - cDbCJGridColumnSuggestion

Called to process a selection from the suggestion list

Type: Event

Parameters

Parameter Type Description
sSearch String The current search value
Suggestion tSuggestion The selection

Syntax

Procedure OnSelectSuggestion String sSearch tSuggestion Suggestion

Description

OnSelectSuggestion is called when an item from a suggestion list is selected. It is used to update the form with the selection. The "update" may consist of updating a DDO record, moving a value into the form or whatever special behavior you desire.

Normally, the update process is automatic and you do not want to change it. When peSuggestionMode is smFind or smValidationTable, you will probably not want to augment this event.

When peSuggestionMode is smCustom, you will need to augment this event to update your form. See peSuggestionMode for more information about changing this event as well as the OnFindSuggestions event, which you will also need to augment.