Skip to Content
avatar image
Former Member

Open an existing For, from a new menu

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

-


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 24, 2004 at 10:41 AM

    Hi Natialia

    To open an existing form use the ActivateMenuItem method of the uiApplication object:

    uiApp.ActivateMenuItem(2556) 'MenuUID of SBO 6.2; verify whether it's the same MenuUID in SBO 6.5!

    Add comment
    10|10000 characters needed characters exceeded