The documentation says the following:
-
Refreshes the item display on the form. Use this method to update an object from the database
-
I want to be able to update the Ship-To combo box on the Sales Order screen with a new entry that was put into the Business Partner "Contact Persons" without closing/leaving the current sales order record. At first glance, this method promises to give me the desired results. I have tried the following code with no success. Has anybody else run into this problem? I would think it is fairly typical problem.
If pVal.FormType = formOrder Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
If (pVal.ItemUID = "40") Then
oForm = SBO_Application.Forms.GetForm(formOrder, pVal.FormTypeCount)
oForm.Items.Item("40").Update() ' this does not get the new values from the DB.
End If
End If
End If
Thanks in advance.
Carlos