Skip to Content

Opening a UDOForm1.b1f Form within SBO_Application_MenuEvent

Nov 15, 2016 at 09:49 AM


avatar image
Former Member

Hello Experts.

I have created a UDO using Business one Object Registration Wizard then Imported it inside Visual studio where i have added some logic to it . I have a menu CostingSheet that responds by opening a Form1.b1f that i have added just for testing purpose .But i don't know the corresponding method for opening UDOForm1.b1f


Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            BubbleEvent = True
               If (pVal.BeforeAction And pVal.MenuUID = "CostingSheet") Then
                Dim activeForm As UDOForm1
             activeForm = New UDOForm1
            activeForm.Show() 'only works  for  Form1.b1f  as
                End If
            Catch ex As System.Exception
                Application.SBO_Application.MessageBox(ex.ToString(), 1, "Ok", "", "")
            End Try
        End Sub
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers