Hi guys,
I have a problem we have a WMS add-on and a customized UDFs organizer add-on, every time a new Item Master Data window is opened it starts to shake or refreshing like 5 seconds. When the WMS add-on works alone IMD is opened normally as well as when the UDFs addon is working alone, the problem is when both add-ons are running, this is a piece of loading code:
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If (pVal.FormType = 150 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.Before_Action = True) Then
oItemForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
oNewItem = oItemForm.Items.Add("UDFs", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
oItem = oItemForm.Items.Item("4")
oItem.Left = 380
oItem.Top = 90
oItem.Width = 150
oItem.Height = 350
oFolderItem = oNewItem.Specific
oFolderItem.Caption = "UDFs"
oFolderItem.GroupWith("3")
AddItemsToItemForm()
This only happens when the add on is installed, when the UDF add-on is running in debbuging mode everything is fine even running both add-ons.
Any help would be appreciated.
Thank you all.