on 2007 Mar 16 10:58 AM
Hi all,
How to call default form by clicking any menu which created newly.
Hi Sudarsan,
First of all you need to catch the menu event fired by SBO Application object in your startup class. Try putting in the following code
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If pVal.BeforeAction = False Then
Case "mnu_ABC"
Dim oXMlDoc As Xml.XmlDocument
oXMlDoc = New Xml.XmlDocument
Dim sPath As String
sPath = "C:\Program Files\SAP\Addnos"
oXMlDoc.Load(sPath & "\" & "MyForm.xml")
Return oXMlDoc.InnerXml
End Select
End If
End Sub
Hope it works out. Also try looking for previouse threads regarding the same by using the search box on top of the page.
Regards
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
111 | |
8 | |
8 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.