List String Column - AutoCompleting Event

Fired as a value is being edited allowing for a replacement value to be returned

Member of List String Column (PRIM_LIST.String)

Parameters

NameTypeData TypeDescription
Value*BothUnicode StringCurrent value of the field and the replacement value to return

Details

The AutoCompleting event provides an opportunity for the value to be completed as the user types.
 
The value entered is passed in to the event via the Value parameter.  The value can then be modified and returned to the edit.
 
Selection of characters within the edit is managed automatically.

Example

In this example, the value is matched against a set of predefined values.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864)
 
   Define_Com Class(#PRIM_LIST) Name(#List) DisplayPosition(1) Left(30) Parent(#COM_OWNER) TabPosition(1) Top(38) Height(379) Width(259)
   Define_Com Class(#PRIM_LIST.String) Name(#DataColumn) DisplayPosition(1) Parent(#List) ColumnUnits(Proportion) ColumnReadOnly(False) ColumnCaption('Enter Values') ColumnCaptionType(Caption) ColumnCaptionAlign(Left)
 
   Evtroutine Handling(#Com_owner.CreateInstance)
 
      Inz_List Named(#List) Num_Entrys(10)
 
   Endroutine
 
   Evtroutine Handling(#DataColumn.AutoCompleting) Value(#Value)
 
      Case (#Value)
 
      When (= "1")
         #Value := "100"
 
      When (= "2")
         #Value := "200"
 
      When (= "3")
         #Value := "300"
 
      When (= "4")
         #Value := "400"
 
      Endcase
 
   Endroutine
 
End_Com

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020