Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pfcdwsrv/pfc_n_cst_dwsrv_dropdownsearch.sru
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ event pfc_itemfocuschanged(long al_row, ref dwobject adwo_object);//////////////
// 12.5 When used with DDLB edit style, this service was not always correctly
// processing the user's initial keystroke. This was due to instance var
// is_textprev not being properly initialized in this event.
//
// 17.0 Fixed 12.5 change by incrementing column index at the beginning of the loop.
//////////////////////////////////////////////////////////////////////////////
//
/*
Expand Down Expand Up @@ -291,6 +291,8 @@ Else
li_ddlb_index = 0
// Search the ddlb's Code Table for a data value match.
Do
// Increment column index.
li_ddlb_index++
ls_ddlb_codetableentry = idw_requestor.GetValue(ls_dwcolname, li_ddlb_index)
If ls_ddlb_codetableentry = '' Then
// No match found.
Expand All @@ -300,15 +302,13 @@ Else
li_tabpos = Pos(ls_ddlb_codetableentry, '~t')
ls_ddlb_displayvalue = LeftTrim(Mid(ls_ddlb_codetableentry, 1, li_tabpos - 1))
ls_ddlb_datavalue = LeftTrim(Mid(ls_ddlb_codetableentry, li_tabpos + 1))
// Increment column index.
li_ddlb_index++
// Is this code table's data value a match?
If Lower(ls_textvalue) = Lower(ls_ddlb_datavalue) Then
If Lower(ls_textvalue) = Lower(ls_ddlb_datavalue) Then
lb_matchfound = True
Else
lb_matchfound = False
End If
Loop Until lb_matchfound Or li_ddlb_index = li_numtabs
Loop Until lb_matchfound Or li_ddlb_index >= li_numta
// Set initial value for "previous text" if a match was found.
If lb_matchfound Then
is_textprev = ls_ddlb_displayvalue
Expand Down