Skip to Content
0
Former Member
Nov 04, 2009 at 12:03 PM

Event

25 Views

I have created a addon for validating entries.I am able to connect to company.

 Public Sub Main()
        Try
            SetApplication()
            ConnectToCompany()
            SetFilters()
            System.Windows.Forms.Application.Run()
        Catch ex As Exception
            SBO_Application.MessageBox(ex.Message)
        Finally
            SBO_Application.MessageBox("IN")
        End Try
    End Sub

I am able to debug upto ,

System.Windows.Forms.Application.Run()

No event fires after this 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.EventType = SAPbouiCOM.BoEventTypes.et_FORM_RESIZE And pVal.Action_Success = True And (pVal.FormType = "149" Or pVal.FormType = "142") Then
                AddTermsAndConditions(pVal.FormType)
End If
End Sub

I have set breakpoint for itemevent.But this code can not be debugged.