Skip to content

ShouldSuggestion - cDbCJGridColumnSuggestion

Called to determine if a suggestion list should be shown after a keypress

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
sValue String The value of the current search string (i.e. current user input)
bChanged Boolean Determines if the form's value is changed

Syntax

Function ShouldSuggestion String sValue Boolean bChanged Returns Boolean

Call Example

Get ShouldSuggestion sValue bChanged to BooleanVariable

Description

After a keypress and the piPopupTimeOut interval has elapsed, ShouldSuggestion is called to determine if a suggestion list should be invoked.

By default it returns True, if the form value is changed and the length of the value is at least piStartAtChar.

This could be augmented to support other strategies.

Return Value

Returns True if suggestion list should be displayed