Add row by right click event

hello expert
i want to create add row functionality by right click event like in SAP B1 when we click on matrix colum it give menu for Remove,copy,add row in matrix how i do it by in my userdefiend form matrix

Hello,
If you enable the menu on your form Add row (menu id: 1292), Del Row  (menu id: 1293 )it will automatically appear in right click .
copy should be added indivudally, and developed the functionality for each
enable them:
oForm.EnableMenu("1292", True)
            oForm.EnableMenu("1293", True)
You can use MenuEvent to add/del/copy rows in the matrix or RightClickEvent
Regards,
J.

Similar Messages

  • Right Click Event C#

    Hi,
    Is it the right way to use the right click event to delete row in Matrix?
    Could you please give me the template method for right click event?
    Thank you,
    Rune

    private void m_Application_EventRightClick(ref SAPbouiCOM.ContextMenuInfo oContextMenuInfo, out bool BubbleEvent)
                BubbleEvent = true;
                string vm_Column_ID_string = oContextMenuInfo.ColUID;
                string vm_EventType_string = Convert.ToString(oContextMenuInfo.EventType);
                string vm_Form_ID_string = oContextMenuInfo.FormUID;
                string vm_Item_ID_string = oContextMenuInfo.ItemUID;
                Int32 vm_Row_Int32 = oContextMenuInfo.Row;

  • Right click event on a matrix

    Hi All
    I have to capture the right click event on a matrix
    here is my code
    <B1Listener(BoEventTypes.et_RIGHT_CLICK, True)> _
            Public Overridable Function OnBeforeRightClick(ByVal pVal As ContextMenuInfo) As Boolean
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                'ADD YOUR ACTION CODE HERE ...
                If pVal.ItemUID = "matItems" Then
                    ' do something
                End If
                Return True
            End Function
    the problem is that pVal.ItemUID always return null.
    Can any one help me
    Regards
    Arun TB
    Edited by: aruntb on Jul 14, 2010 9:39 PM

    Solved

  • Highlight JTable Row with Right-Click

    How can I get a JTable to highlight a row when that row is right-clicked? Thanks, Jeremy

    table.addMouseListener(new MouseAdapter()
    public void mouseClicked (MouseEvent e)
    if(e.isMetaDown())
    int row = table.rowAtPoint(e.getX((), e.getY();
    table.setSelectionInterval(row, row);
    });Or something like that.

  • Right Click Event & Link To

    Hi All,
    What is the use of LinkTo Property in Item Object. What is the advantage of it
    When the Right Click Event Fires. I tried on form  but doesn't work.

    Hi Manish,
    oItem.LinkTo is used for
    1. Labels (StaticText) to get the "white line" that connects the edittext.
    2. Links/Orange Arrow (LinkedButton) to connect them with a edittext. than the Arrow knows where to take
    the value from
    the RightClick Event is in an own EventHandler ! also be sure you enabled it in your EventFilter
    lg David

  • Create a right click event...

    Hi,
    I want to create a right click event programmatically in my Swing application.
    Can anyone tell me how do I do this? I have the listener and the code that works for my required functionality, but it requires me to right click explicitly. And, I wanted to simulate a right click so that I can execute this part of the code in the listener. Is there any way to do it?
    Thanks in advance...

    I wanted to simulate a right click so that I can execute this part of the code in the listener1) Create a method that can be invoke directly by the listener and your program.
    or
    2a) Create a MouseEvent
    2b) use the dispatchEvent(...) method of the Component class to send the event to the object.

  • Right-Click Event Matrix

    Good Morning
    Experts:
    I have added several options(SAP and Custom) to the Right-Click event.  It works as designed when Right-Clicking on the Matrix.  However, when Right-Clicking anywhere else on the screen, the options are still displayed.
    How can I restrict the options to only be displayed when Right-Clicking on a Matrix?
    Thanks,
    EJD

    Hi Ed,
    The right click event is completely separate event (ie it is not an EventType within the ItemEvent).
    So to code it (C#):
    private void _sboApp_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo EventInfo, out bool BubbleEvent)
         BubbleEvent = true;
         if(EventInfo.FormUID == "MYFORM")
              // Do some stuff
    You also need to have defined the event while initialising the application object:
    this._sboApp.RightClickEvent += new SAPbouiCOM._IApplicationEvents_RightClickEventEventHandler(this._sboApp_RightClickEvent);
    There's an example project in the UI section of the SDK samples (number 22).
    Kind Regards,
    Owen

  • How to select the row on right click.

    Hi,
    I want row selection when user right click on the table.
    Right now when user right click on table a pop up menu comes but no row selected at this time.
    Can any body tell how select the row when right click over the table.

    Hi,
    look at this thread:
    http://forum.java.sun.com/thread.jspa?threadID=501957&messageID=2374481
    L.P.

  • Sending a right click event

    hello!
    is there a way to send a right click event?
    After a certain action I want to open the right click menu on the current form.
    any ideas?

    Here is my solution:
            private const uint MOUSEEVENTF_RIGHTDOWN = 0x0008;
            private const uint MOUSEEVENTF_RIGHTUP = 0x0010;
            [System.Runtime.InteropServices.DllImport("user32.dll")]
            private static extern void mouse_event(
            UInt32 dwFlags, // motion and click options
            UInt32 dx, // horizontal position or change
            UInt32 dy, // vertical position or change
            UInt32 dwData, // wheel movement
            IntPtr dwExtraInfo // application-defined information
            public static void SendClick(System.Drawing.Point location)
                System.Windows.Forms.Cursor.Position = location;
                mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, new System.IntPtr());
                mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, new System.IntPtr());
    I placed this code into the method where I want to do a rightclick (position):
    SendClick(position);

  • B1DE Right Click Event

    Hi all,
    I am working with B1DE and the Right click Event doesn't fire at all?
    anybody knows why?

    Yes you are correct. This is a bug and it will be fixed
    in the next release of B1DE planned to appear on SDN this month.

  • Stop right click Event on JTabbedPane

    Hi,
    Does anyone know how to stop tabbed pane changing by right click of the mouse? I still want left click to change.
    Thanks a lot.
    Qian

    The proper way to do this is to write a custom UI as this behaviour is controlled by the UI.
    As a quick hack you can replace the deault MouseListener with a custom MouseListener. The listener code below was taken from the BasicTabbedPaneUI and slightly modified:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TabbedPaneNoRightClick extends JFrame
        public TabbedPaneNoRightClick()
            JTabbedPane tabbedPane = new JTabbedPane();
            getContentPane().add(tabbedPane);
            newTab(tabbedPane, "one");
            newTab(tabbedPane, "two");
            newTab(tabbedPane, "three");
            newTab(tabbedPane, "four");
            MouseListener[] ml = (MouseListener[])tabbedPane.getListeners(MouseListener.class);
            for (int i = 0; i < ml.length; i++)
                tabbedPane.removeMouseListener( ml[i] );
            tabbedPane.addMouseListener(new MouseAdapter()
                public void mousePressed(MouseEvent e)
                    JTabbedPane tabbedPane = (JTabbedPane)e.getSource();
                    if (!tabbedPane.isEnabled()
                    ||  SwingUtilities.isRightMouseButton( e ))  // added
                        return;
                    // int tabIndex = getTabAtLocation(e.getX(), e.getY()); // changed
                    int tabIndex = tabbedPane.getUI().tabForCoordinate(tabbedPane, e.getX(), e.getY());
                    if (tabIndex >= 0 && tabbedPane.isEnabledAt(tabIndex))
                        if (tabIndex == tabbedPane.getSelectedIndex())
                            if (tabbedPane.isRequestFocusEnabled())
                                tabbedPane.requestFocus();
                                //tabbedPane.repaint(getTabBounds(tabPane, tabIndex)); // changed
                                tabbedPane.repaint(tabbedPane.getUI().getTabBounds(tabbedPane, tabIndex));
                        } else
                            tabbedPane.setSelectedIndex(tabIndex);
        private void newTab(JTabbedPane tabbedPane, String text)
            JLabel label = new JLabel(text);
            tabbedPane.addTab( text, label );
        public static void main(String args[])
            TabbedPaneNoRightClick frame = new TabbedPaneNoRightClick();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.setSize(200, 100);
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }

  • Right click event of a cell

    Hi friends
    i want to write some code on event that is right click of a cell. is it possible.
    thanks

    Yes, its possible.
    Eventtype = et_RIGHT_CLICK
    BeforeAction = True
    ItemUID = matrixID
    ColUID = columnID
    then in pval.row you will have the row number, where user clicked with right click.

  • How to add a new right-click menu entry in Nautilus file browser?

    I want to add a couple of new context menu entries to Nautilus File Browser.
    So when I e.g. right-click in View Pane on a file "foobar.conf" an menu entry "edit with gedit" should appear (among the other default entries).
    When clicked the file "foobar.conf" should be passed to gedit (and gedit editor opened).
    How can I achieve this?
    Under Ubuntu there are nautilus-actions but when I try to install them in Solaris with
    pkg install nautilus-actions
    then this package is not found.
    How else can I create my own context menues?
    I would appreciate to have one script with all my context menus, which when run add them all in one step.

    To manage selected files or directories, you can use specific Nautilus variables like NAUTILUS_SCRIPT_SELECTED_FILE_PATHS.
    For more details and which variables exist, please read the content of the following URL :
    Nautilus File Manager Scripts: Questions and Answers

  • How to handle Right Click Event in Tree

    Hi ,
    I am Vaibhav. I have create a tree in Apex 4.0. I have to add options insert,update,delete in right click on tree node. So
    what is the solution for this scenario.
    Thanks in advance,
    Vaibhav
    Edited by: user10600404 on Apr 27, 2011 2:46 AM

    hi
    Thanks for reply,
    I have add this in tree query
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    rt.NAME as title,
    null as icon,
    ex.ID as value,
    null as tooltip,
    null as link
    from TREE_MASTER ex
    inner join ROOT_MASTER rt
    on ex.PARENT_ID=rt.ID
    start with ex.PARENT_ID = 11
    connect by prior ex.PARENT_ID=ex.CHILD_ID
    But tree title not looks in correct way It Looks like as Javascript synatax. So what is the solution for this ?
    Regards,
    Vaibhav

  • Right Click event name.

    Hi All,
    When I am doing right click on under red color rectangle( ISU data Generator) It giving  three option when i clicking in first option Crete data a new sub screen is open, How to know which screen is going to call on create data screen, Not able to find through Debug Mode.

    Hi mohd,
    In ALV tree the event for right-click is node_context_menu_request .
    I hope you to find the code...
    Regards

Maybe you are looking for