n_cst_dwsrv_dropdownsearch
Usage :
Use this object to add code to u_dw that provides automatic scrolling in DropDownDataWindows.
To use this service:
1. Enable the service by calling the u_dw of_SetDropDownSearch function (preferably in the Constructor of the datawindow).
This.of_SetDropDownSearch(TRUE)
2. Specify the DropDownDataWindow column for which the service is enabled (preferably in the Constructor of the datawindow).
If (IsValid(inv_dropdownsearch) = TRUE) Then
inv_dropdownsearch.of_Register("dept_id")
End If
3. In the DataWindow control's EditChanged event, add a call to the n_cst_dwsrv_dropdownsearch pfc_EditChanged event:
If (IsValid(inv_dropdownsearch) = TRUE) Then inv_dropdownsearch.Event pfc_EditChanged(row,dwo,data) End If
4. In the DataWindow control's ItemFocusChanged event, add a call to the n_cst_dwsrv_dropdownsearch pfc_ItemFocusChanged event:
If (IsValid(inv_dropdownsearch) = TRUE) Then inv_dropdownsearch.Event pfc_ItemFocusChanged(row,dwo) End If
5. Set the SEARCHABLE datawindow's column Format to be :
Allow Editing : True
Always Show List : True
6. Set ItemError to the appropriate error code