Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.