Skip to Content
0
Former Member
Oct 03, 2005 at 01:49 PM

SDK Logistic

25 Views

HI

I have replace the Choose From List when calling the Inventory on the Sales Order Form with a Formatted Search using the SendKey method, everytime I press the Tab Key it calls the formatted search. It work fine for the Sales Order ,but I have to do the same in every form that call the Choose From List(Inventory).

I used an <u><b>IF Statement</b></u> to accomplish this, specifing the FormType = 139 and the ItemUID = "38" ,

know I have to do it for every form that calls the Inventory , I would like to know wish is the best way to implement this, (By creating a table with all the values of the form that need to call the Formatted Search, using a Select CASE ,If & Else ) Any ideas????

Here is the code that I have:

If pVal.FormType = 139 And pVal.ItemUID = "38" And pVal.EventType = et_KEY_DOWN And pVal.CharPressed = "9" And pVal.BeforeAction = True Then

Set dsa_Matrix = applic.Forms.Item(pVal.FormUID).Items("38").Specific

dst_Value = dsa_Matrix.Columns.Item("1").Cells.Item(pVal.Row).Specific.Value

If dst_Value = "" Then

BubbleEvent = False

Call applic.SendKeys("+")

End If

End If