Activate BP Form in my add-on sub Menu

Hi all,
I have done my add-on Menu=Gestion portuaire and a Sub Menu=Fiche consignataire. I want to load BP form if i click on my sub menu. Help me please.

Hello,
See your question on thread: Duplicate system  form
Locate your menu if in Fiche and replace MY_BP_FORM with you menu id
I have posted there the menu activation code, you should put into sbo_application_menuevent section
Select Case pVal.MenuUID
            Case "MY_BP_FORM"
                If pVal.BeforeAction Then
                    sbo_application.ActivateMenuItem("2651")
                End If
        End Select
Regards,
J.

Similar Messages

  • Can I add a sub menu to Preferences menu?

    My plugin requires some settings to be done before using that. Can I add a sub menu to a Edit->preferences menu?

    No.

  • Sub Menu Creation

    Dear All,
    Please see below the source code. It is working fine, but I want to add one sub menu in "Window" or in any default menu supported by InDesign.
    var myMe = app.menus.item("$ID/Main").submenus.add("Test");
    myMe.remove();
    var mySSA= app.scriptMenuActions.add("123");
    var mySSM = app.menus.item("$ID/Main").submenus.add("Test");
    var myEL = mySSA.eventListeners.add("onInvoke", function(){
          subs();
    function subs()
          alert("Selction is: ",  "Test");
    var mySSM = mySSM.menuItems.add(mySSA);
    Regards,
    Rajeev

    Modified from the javascript examples:
    #targetengine "session"
    //MakeScriptMenuAction.jsx
    //An InDesign CS3 JavaScript
    //Adds a menu at the end of the main menu bar.
    var mySampleScriptAction = app.scriptMenuActions.add("Display Alert");
    var myEventListener = mySampleScriptAction.eventListeners.add("onInvoke", myFunction, false);
    //If the submenu "Script Menu Action" does not already exist, create it.
    //You might have to force InDesign to redraw the menu (by switching
    //out of the application and back again) to make the menu item appear.
    try{
        var mySampleScriptMenu = app.menus.item("$ID/Main").submenus.item("Window").submenus.item("Script Menu Action");
        mySampleScriptMenu.title;
    catch (myError){
        var mySampleScriptMenu = app.menus.item("$ID/Main").submenus.item("Window").submenus.add("Script Menu Action");
    var mySampleScriptMenuItem = mySampleScriptMenu.menuItems.add(mySampleScriptAction);
    function myFunction(){
        alert("This menu item was added by a script.");
    And to clean up again:
    #targetengine "session"
    app.scriptMenuActions.everyItem().remove();
    try{
        var mySampleScriptMenu = app.menus.item("$ID/Main").submenus.item("Window").submenus.item("Script Menu Action");
        mySampleScriptMenu.remove();
    catch (myError){
        alert("Could not remove menu");

  • I want to have JMenu on a Side bar(JPanel) with sub menu.

    I want to have the JMenu on the sidebar(which is a
    JPanel placed at WEST). This JMenu shall have the sub
    menu with it. I got the JMenu on the Sidebar but when
    i take mouse over(or click) the MenuItem it is
    displaying the sub Menu. I am attaching the my code.
    Can anyone please let me know why it is not displaying
    the sub menu and what should be added to my code to
    work?
    Thanks in Advance(see below for code)
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class SideBarMenu extends JFrame {
         JMenuItem menuItem1,menuItem2;
         JMenu books, softwares, tools;
         JSeparator horizontal1, horizontal2,horizontal3;
         JPanel p1, p2;
          public static void main(String[] args) {
           SideBarMenu vAR =  new SideBarMenu();
         public SideBarMenu() {
              super("Side Bar");
              setSize(500,500);
              setLocation(150,100);
              setResizable(true);     
              Container content = getContentPane();
              p1 = new JPanel(new BorderLayout());
              p2 = new JPanel();
              p2.setLayout(new GridLayout(20,1));
              p2.setBorder(BorderFactory.createLineBorder(Color.black,1));
              books = new JMenu("Books");
              horizontal1 = new JSeparator( JSeparator.HORIZONTAL );
              softwares = new JMenu("Softwares");
              horizontal2 = new JSeparator( JSeparator.HORIZONTAL );
              tools = new JMenu("Tools");
                                    horizontal3 = new JSeparator( JSeparator.HORIZONTAL );
              //sub Menu for menu "books"     
              menuItem1 = new JMenuItem("Java");
              books.add(menuItem1);
              menuItem2 = new JMenuItem(".Net");
              books.add(menuItem2);
              //sub Menu for menu "Softwares"          
              menuItem1 = new JMenuItem("Java");
              softwares.add(menuItem1);
              menuItem2 = new JMenuItem(".Net");
              softwares.add(menuItem2);
              //sub Menu for menu "tools"          
              menuItem1 = new JMenuItem("Java");
              tools.add(menuItem1);
              menuItem2 = new JMenuItem(".Net");
              tools.add(menuItem2);
              p2.add(books);
              p2.add(horizontal1);
              p2.add(softwares);
              p2.add(horizontal2);
              p2.add(tools);
              p2.add(horizontal3);
              p1.add(p2,BorderLayout.WEST );
              content.add(p1);
              setVisible(true);
    }

    Hi Ashwin,
    I saw the above code which is approaching my requirement... Thats cool man. Taking that as reference i modified it to make it what i want. The code i have modified and which is very closer to my requirement is attached below. I have set the Windows Look and Feel, because its easy to track my problems with it. The problems am having are:
    1) When the mouse is removed from the menu its submenu is not disappearing.
    2) When i take the mouse over the menu its making the name(Books/softwares/tools) of the menu invisible.
    3) When i take the mouse over the sub menu items they are not getting highlighted, which means they are not listening
    I hope u will solve these issues for me...
    Also make the menu items work ie., just make them print when i click submenus like "Clicked books->java" and "clicked softwares->.Net" so that i get an idea of events....
    Many Thanks .
    Here we go,
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.GridLayout;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionAdapter;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JPopupMenu;
    import javax.swing.JSeparator;
    import javax.swing.UIManager;
    public class SideBarMenu4 extends JFrame
        JMenuBar menuBar;
        JPopupMenu popup = new JPopupMenu();
        JMenuItem menuItem1, menuItem2;
        JMenu books, softwares, tools;
        JLabel mainMenu = new JLabel("Main Menu");
        JMenu subMenu;
        JSeparator horizontal1, horizontal2, horizontal3;
        JPanel p1, p2;
        public static void main(String[] args)
            SideBarMenu4 vAR = new SideBarMenu4();
        public SideBarMenu4()
            super("Side Bar");
            setSize(500, 500);
            setLocation(150, 100);
            setResizable(true);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            Container content = getContentPane();
            p1 = new JPanel(new BorderLayout());
                        try {
              //MetalLookAndFeel.setCurrentTheme(new MacMetricsTheme());
                 UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");            
            } catch(Exception e) {}
            p2 = new JPanel();
            p2.setLayout(new GridLayout(30, 1));
            p2.setBorder(BorderFactory.createLineBorder(Color.black, 1));
            books = new JMenu("Books");
            horizontal1 = new JSeparator(JSeparator.HORIZONTAL);
            softwares = new JMenu("Softwares");
            horizontal2 = new JSeparator(JSeparator.HORIZONTAL);
            tools = new JMenu("Tools");
            horizontal3 = new JSeparator(JSeparator.HORIZONTAL);
            // sub Menu for menu "books"
            menuItem1 = new JMenuItem("Java");
              popup.add(menuItem1);
            //books.add(menuItem1);
            menuItem2 = new JMenuItem(".Net");
              popup.add(menuItem2);
              popup.setPopupSize(100,50);
            menuBar = new JMenuBar();
            menuBar.setLayout(new GridLayout(0, 1, 5, 5));
            books.add(popup);
              books.setComponentPopupMenu(popup);
            books.addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseMoved(MouseEvent e)
                     popup.show(books, 88, 0);
              softwares.add(popup);
              softwares.setComponentPopupMenu(popup);
            softwares.addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseMoved(MouseEvent e)
                     popup.show(softwares, 88, 0);
              tools.add(popup);
              tools.setComponentPopupMenu(popup);
            tools.addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseMoved(MouseEvent e)
                     popup.show(tools, 88, 0);
            // p2.add(menuBar);
            p2.add(books);
              p2.add(horizontal1);
              p2.add(softwares);
              p2.add(horizontal2);
              p2.add(tools);
              p2.add(horizontal3);
            p1.add(p2, BorderLayout.WEST);
            content.add(p1);
            setVisible(true);
    }

  • Add sub menu

    I want to create menus in nested order i.e.
    Customized Reports
    ....Financials
         ........Bank Book
    Outgoing Payment Receipt
    I am able to create Customized Reports and Financials.But I am not able to add Bank Book and Outgoing Payment Receipt under Financials.For creating the above menus I have referred the code from sample examples given by sdk.The code is as,
    oMenuItem = SBO_Application.Menus.Item("MyMenu022")
                oMenus = oMenuItem.SubMenus
                '// Create s sub menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                oCreationPackage.UniqueID = "Financials"
                oCreationPackage.String = "Financials"
                oMenus.AddEx(oCreationPackage)
                '// Create s sub menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                oCreationPackage.UniqueID = "MySubMenu028"
                oCreationPackage.String = "Edit Item"
                oMenus.AddEx(oCreationPackage)

    see this u get idea--
    Sub AddMenuItems()
            Dim MenuImage As String
            Dim cmdCenterForm As SAPbouiCOM.Form
            cmdCenterForm = SBO_Application.Forms.GetFormByTypeAndCount(169, 1)
            If cmdCenterForm Is Nothing Then
                Return
            End If
            'freeze the command center (faster and no flickering)
            cmdCenterForm.Freeze(True)
            Try
                'Menu ID Range to be used is M_000131 - M_000150
                'Form ID Range to be used is 2000050151 - 5000050170
                oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
                oMenuItem = SBO_Application.Menus.Item("43520")  ' Module Menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
                oCreationPackage.UniqueID = "M_000131"
                oCreationPackage.String = "Exports"
                oCreationPackage.Enabled = True
                oCreationPackage.Position = 14
                MenuImage = System.Windows.Forms.Application.StartupPath + "\Images\Imports.bmp"
                oCreationPackage.Image = MenuImage
                oMenus = oMenuItem.SubMenus
                Try
                    oMenus.AddEx(oCreationPackage)
                Catch ex As Exception
                End Try
                ' Incentives 
                oMenuItem = SBO_Application.Menus.Item("M_000131")  ' Exports
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
                oCreationPackage.UniqueID = "M_000141"
                oCreationPackage.String = "Incentives"
                oCreationPackage.Enabled = True
                oCreationPackage.Position = 0
                oMenus = oMenuItem.SubMenus
                Try
                    oMenus.AddEx(oCreationPackage)
                Catch ex As Exception
                End Try
                '''''''   'sub menu for Incentives
                AddMenuItem1("M_000142", "Free Trade Zones")
                AddMenuItem1("M_000143", "Export Oriented Units (EOU")
                AddMenuItem1("M_000144", "DEEC")
                AddMenuItem1("M_000145", "EPCG")
                AddMenuItem1("M_000146", "Deemed Exports")
                AddMenuItem1("M_000147", "Duty Drawback")
                AddMenuItem1("M_000148", "PPV Report")
                ' Master 
                oMenuItem = SBO_Application.Menus.Item("M_000131")  ' Exports
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
                oCreationPackage.UniqueID = "M_000161"
                oCreationPackage.String = "Master"
                oCreationPackage.Enabled = True
                oCreationPackage.Position = 0
                oMenus = oMenuItem.SubMenus
                Try
                    oMenus.AddEx(oCreationPackage)
                Catch ex As Exception
                End Try
                'sub menu for master
                AddMenuItem1("M_000162", "Shipping Bill")
                AddMenuItem1("M_000163", "Customs Declaration Form")
                AddMenuItem1("M_000164", "Commercial invoice")
                AddMenuItem1("M_000165", "Customs Invoice")
                AddMenuItem1("M_000166", "Certified Invoice")
                AddMenuItem1("M_000167", "Packing List")
                AddMenuItem1("M_000168", "Certificate of Shipment")
                AddMenuItem1("M_000169", "Health/ Veterinary/ Sanitary Certification")
                AddMenuItem1("M_000170", "Shipping Order ")
                AddMenuItem1("M_000171", "Short Shipment Form")
                AddMenuItem1("M_000172", "Packing List")
            Catch ex As Exception
            End Try
            cmdCenterForm.Freeze(False)
            cmdCenterForm.Update()
        End Sub
       Sub AddMenuItem1(ByVal MenuID As String, ByVal MenuName As String)
            Try
                If MenuID = "M_000142" Or MenuID = "M_000143" Or MenuID = "M_000144" Or MenuID = "M_000145" Or MenuID = "M_000146" Or MenuID = "M_000147" Or MenuID = "M_000148" Then
                    oMenuItem = SBO_Application.Menus.Item("M_000141")
                ElseIf MenuID = "M_000162" Or MenuID = "M_000163" Or MenuID = "M_000164" Or MenuID = "M_000165" Or MenuID = "M_000166" Or MenuID = "M_000167" Or MenuID = "M_000168" Or MenuID = "M_000169" Or MenuID = "M_000170" Or MenuID = "M_000171" Or MenuID = "M_000172" Then
                    oMenuItem = SBO_Application.Menus.Item("M_000161")
                Else
                    oMenuItem = SBO_Application.Menus.Item("M_000131")
                End If
                oMenus = oMenuItem.SubMenus
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                oCreationPackage.UniqueID = MenuID
                oCreationPackage.String = MenuName
                oMenus.AddEx(oCreationPackage)
            Catch ex As Exception
            End Try
        End Sub

  • I am having problem for activate adobe form in transaction.code SFP

    Dear friends,
    I am getting one dialogbox with error message when ever i activate adobe form in transaction code sfp.
    ERROR is :
    THis form refers to external files which where not found on this computer. please create a connection to the following folder so that these files can be found.
    http://localhost:8000/sap/bc/form/layout/

    exactly the same problem here.
    Somebody any idea?
    All help is appreciated.
    Tnx!
    RoB

  • Form enhancement in "Add" mode

    A form loads in "Add" mode and then the add-on adds some controls and sets their inital value. If the user then switches to find mode, or does a prev/next/last/first navigation an error message warns that the changes will be lost. Is there a way to prevent this message by putting the form back into the "clean" state it was in before the add-on modified it?
    Thanks for any help.
    Mel Dodd

    As far as I know there are no way of getting rid of theis meesage on system forms... If it is your own for or your own items that cause the the changes then the AffectFormMode property might be your solution.
    A little ugly but do-able workaround it to close the form with changes and open a new clean version (ActivateMenuItem)

  • Cannot Activate the Form

    I have a PO form, I need make some modification, i use se71 to change the form layout, the use me22n to test the form. but it still is last version, no any update after the form has been changed. How can i activate the form, Thanks!

    In SE71, make sure to activate from the menu.
    In change mode, click "Form" -> "Activate"
    Regards,
    RIch Heilman
    Message was edited by:
            Rich Heilman

  • Please specify how do we can activate a web scope feature over all sub webs when a solution package is activated.???

    please specify how do we can activate a web scope feature over all sub webs when a solution package is activated.
    when a solution package is deactivated the web scope features over all sub website gone deactivated and does not re-activated when solution package is activated.
    we have couples of sub webs to activate web features manually that should be activated when a solution package is activated.
    all sub webs are created by custom web templates onet.xml.

    Hi,
    I can think of three different solution (all custom solution)
    Use Powershell Cmdlet to activate feature to all sub sites
    Upgrade your solution to Site Collection scope, However all subsites under the root will have access to the features, which you may want to restrict based on your requirement
    create a site scoped solution feature to activate the web scoped features, this will give you more control and easier management of all your features
    here are some links -
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/10a95745-67c5-4a32-a783-b9ae8977f7e0/deploying-a-solution-with-a-feature-to-be-activated-on-a-number-of-subsites?forum=sharepointdevelopmentprevious
    http://sharepointgroup.wordpress.com/2012/05/04/activating-and-deactivating-features-with-powershell/
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Form Personalization to add menu

    Hi all,
    We have a requirement on form personalization to add menu option under 'Tools' in Service Request form (Field Service).
    The option should be enable only when INCIDENT NUMBER contains any value. Else it should be disable in nature.
    Any one has any idea to do the same..
    Thanks in advance.

    Hello,
    This is the "standalone" Forms forum. You would ask your "personalization" questions in the E-Business Suite Forum.
    Francois

  • Smart forms not displaying result from sub routine

    I am working on a smart form and need to display the description of the fabric code. Under Form Routines, I create a sub routine
    FORM fcc_values USING gv_fabrictext.
    which is supposed to store the description in gv_fabrictext. GV_FABRICTEXT has been declared in global data as char64. Then I call prior to displaying my table as
    perform fcc_values using gv_fabrictext.
    And then insert the field &gv_fabrictext& in cell but this does not display any result
    I know for sure that this sub routine works as I have tested it separately as a test program. Any ideas?

    1. put break point at ssf_function madulename and check field value.
    or
    2 fm_name export parameter ur not mentioned
    or
    3 global variable not defined properly
    go through above. still if u didnt get
    need program where the problem to find.
    Message was edited by:
            Deepa KN

  • Cannot input data in matrix field when the form is in add mode.

    I have created an addon form using UDO.The UDO has four child tables.  I input data in the master data fields in form it works but when I come to matrixes for giving data in matrix fields I was unable to input data there .But after saving the data only with master data I reopend the the form with same data using find option.Now the form allows to input data in matrix fields.Please provide a solution so that I can input data in the matrix columns when the form is in add mode.

    Hi,
    After opening the Customized form you have to add a new blank row into your matrix also.
    oMatrix.AddRow(1,1);
    After then only you can input data.
    regards:
    Sandy

  • Eloaded 10.5 OS, now can't remember how to or am unable to add blank sub bookmark blanks..not sure what to call them...blank title pages to file bookmarked pages under

    Reloaded 10.5.8.. not unable or can't remember how to add blank sub headers to my bookmark. Not sure what else to call the "blank sub headers"

    Do you mean bookmark folders? i.e. you can arrange all of your Sports Sites in the same folder.  If so then click on Bookmarks and click the all bookmark folder.

  • How do I add a sub email account?

     Prior to Verizon changed their web page I used to be able to add/delete manage my email account. Now I REALLY need  Add a sub account I'm unable access the information that tells me how to do it or where to go. I called support and was transferred to 5 departments prior to giving up. Not 1 person was willing to help me out. I attribute this to the fact that I ONLY have email accounts with Vz since I moved and Vz is not available in my new area. I'm paying for the use of the email accounts I should get support?? IF ANYONE can help me PLEASE reply on how to do this... Your help will be GREATLY Appreciated!!

    once you log in, at the top right, it should say Welcome _______ <~ your name 
    If it says that, then you are logged in.  At the same height but directly to the left, is a top RED Verizon Bar, and it starts with a little picture of a house, and then says account > my verizon services  > messages > media > shop > support
    Do you not have the red verizon Bar that starts with the picture of the house?  
    Here is a picture I found from one of the VZ sites,   see if yours looks like that at the top.

  • How Can I Create A Menu contained some sub-menu In The Find/Browser Form

    I need to create an user defined menu in the Find/Browser Form, this menu`s level is same to "File","Row" and it needs to be contained some sub-menu,What I should do?

    Are you using JD Edwards World or EnterpriseOne?

Maybe you are looking for

  • Brandeis U. switched to Gmail; since then I cannot display images in Firefox 3.6.13

    Brandeis U. used to have its own email system (bmail), which linked to Firefox flawlessly. Brandeis switched to Gmail recently, which I do not like. After linking Firefox 3.6.13 to the Gmail, I can see my mail as text only, with urls linking to image

  • Convert report writer to report painter

    Hi, Please advice how to convert report writer to report painter. I have used GR31 to create a report writer but I need to convert it to a report painter as in GRR3.

  • Web service data source - Entry 70 still missing

    Hello, I have created a web service data source in order to create a push mechanism for master data. Before implementing and consuming it in R/3 side, I have tested the generated function module of the data source. I have created a real time (and pus

  • Problem in Sales document change

    Hi all, while changing the sales order, i am getting this error. "Field header_inx-updateflag is not an input field." This error is not coming always, only sometimes. But as this error is coming in the production environment i am not able to debug al

  • Error registering device in Sybase Control Center

    Hi, I am using SUP 2.0 to develop applications. I am not able to register ( create) devices in Sybase Control Center. When i click on Devices tab it shows an error "An internal Error occured. Please check log for details." On checking the log under t