Skip to Content
0
Former Member
May 24, 2004 at 10:01 AM

Open an existing For, from a new menu

31 Views

Hi to all:

I can't find the way to open an existing form, from a menu that I have create in my addon.....

The code

-


Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)

Dim oForm As SAPbouiCOM.Form

If pVal.MenuUID = "MyMenu2" And pVal.BeforeAction = True Then

CreateFormWithMatrix

AddDataSourceToForm

BindDataToForm

GetDataFromDataSourec

End If

If pVal.MenuUID = "MyMenu4" And pVal.BeforeAction = True Then

' I want to open the form number 320

End If

End Sub

-