on 05-31-2006 2:54 PM
Hi,
I try to create a submenu under the Goto menu.
I would like that this submenu is available for all forms of the application.
Unfortunately, the Goto menu is not available for some forms of the application (like Service Call) and so, i can't create the submenu.
I work with Business One 2005 A (PL10).
Could you help me ?
Hi Arnaud,
What you are trying to do is not possible, you can only add menus under the module menu.
Regards
Ad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I know there is a functionallity that if you edit the form XML, and add a tag somewhere (can´t remember exactly where), this menu is added under GoTo menu, and is deleted when the form is closed.
Hope helps,
Ibai Peña
PS: I think this functionallity was avaiable in 2005.
Message was edited by: Ibai Peña
Hi again,
I have look at the 2005 help files and found that appart from the XML tag, the form object has the menus property that has the AddEx method. This is the way a menu is added under GoTo menu (Using the MenuCreationParams parameter).
But I suppose you already know this as you said it works for one form but not for another. Could you post the code to see what the problem is about?
Regards,
Ibai Peñ
Thank you for you help.
Here the code :
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
Try
If ((pVal.FormTypeEx = "60110" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = false)) Then
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim oMenus As SAPbouiCOM.Menus
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oCreationPackage.Checked = False
oCreationPackage.Enabled = True
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MyFormMenu1"
oCreationPackage.String = "MyFormMenu1"
SBO_Application.Forms.Item(FormUID).Menu.AddEx(oCreationPackage)
oCreationPackage.Checked = False
oCreationPackage.Enabled = True
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MyFormMenu2"
oCreationPackage.String = "MyFormMenu2"
SBO_Application.Forms.Item(FormUID).Menu.AddEx(oCreationPackage)
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
Hi,
Here the final answer from SAP Marketplace about theproblem of adding a submenu in 'Goto' menu when the 'Service call' form is the active form :
For some modules of the application like 'Services', the 'Goto' menu is unactivated by the system, so it is not possible to add a menu.
A correction is not expected because SAP considers it is not an issue.
So, we are not very pleased with this response but we have no choice !!
Thank you for you help.
Arnaud
User | Count |
---|---|
97 | |
10 | |
8 | |
6 | |
3 | |
3 | |
3 | |
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.