Right click event on TABLE Cell

Hi,
I have a TABLE built on my webdynpro screen. Now the requirment is in the first column of the TABLE if the user right clicks on the cell a menu should come which has to be filled with custom menus.
Please let me know how that can be acheived.
Thanks
Mahesh

Hi,
I think this can help? check this..
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3041fcd6-3833-2c10-efad-b545c6001553?quicklink=index&overridelayout=true
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/180c60c2e927d0e10000000a155369/content.htm
Cheers,
Kris.

Similar Messages

  • 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.

  • Right Click event on tree table component

    Hi,
    I am using Jdev Studio Edition Version 11.1.1.4.0.
    I have one requirment to open popup on right click on tree table.
    give me some guide line how to do that in adf
    Thanks
    Kiran.

    drag and drop af:popup component into the contextMenu facet of the af:treeTable component

  • 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 & 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

  • 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.

  • 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

  • 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

  • How can I open a popup after clicking in a table cell using Web Dynpro?

    Hello,
    I am using Web Dynpro to create an application and I would like to click in a table cell and then a popup with confirmation appears.
    I already have a table with the information that is displayed in the browser. In fact, I just added a column with images that are print icons.
    My problem is that I don't know how to implement the method to set the action: when clicking on the print icon, a popup appears.
    Thank you very much in advance.

    HI Rafael,
    Please check the below sample code
      To quickly create dialog boxes of a standardized layout (for example, for the confirmation of changes to current data) you can call the CREATE_POPUP_TO_CONFIRM method of the IF_WD_WINDOW_MANAGER. You do not need to create a separate window for this. The dialog box is created automatically by the runtime.
    ●      The CREATE_POPUP_TO_CONFIRM method creates an object of the type IF_WD_WINDOW; the dialog box can be created using its parameters.
    method onactionpopup4_1 .
      data: l_cmp_api          type ref to if_wd_component,
            l_window_manager   type ref to if_wd_window_manager,
            l_popup            type ref to if_wd_window,
            l_text             type string_table,
            l_api              type ref to if_wd_view_controller.
      l_cmp_api        = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      insert `Data where changed` into table l_text.    "#EC *
      insert `Do you want to save?`        into table l_text.    "#EC *
      l_popup = l_window_manager->create_popup_to_confirm(
                    text            = l_text
                    button_kind     = if_wd_window=>co_buttons_yesnocancel
                    message_type    = if_wd_window=>co_msg_type_question
                    window_title    = 'Test: Popup to confirm'
                    window_position = if_wd_window=>co_center )."#EC *
      l_api = wd_this->wd_get_api( ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_yes
                   action_name       = 'YES'
                   action_view       = l_api
                   is_default_button = abap_true ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_no
                   action_name       = 'NO'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_cancel
                   action_name       = 'CANCEL'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->open( ).
    endmethod.
    The SUBSCRIBE_TO_BUTTON_EVENT method of IF_WD_WINDOW assigns the actions to the appropriate buttons
    Thanks
    Vinay

  • 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.

  • Double Click event on table

    I need to allow selection of table row on double click - I implemented this functionality as suggested in article "http://technology.amis.nl/blog/3845/adf-11g-richfaces-handling-the-client-side-double-click-to-invoke-a-server-side-operation". I noticed the double click works fine if I click on any part of the row that is empty (without text). If i double click on the text that is displayed on the column cell - it just highlights the text and does not invoke Java script method for handling double-click event. I have set table 'rowselection' to 'single'. I am using Jdeveloper 11.1.5 and Firefox (3.1.16) browser.
    Any one else has experienced this issue, is there any solution for this.

    Thanks Timo for your response. I am seeing this odd behavior when using pageflowscope managed bean.
    1). I have a page (part of unbounded taskflow) that has commandlink which invokes a task flow as dialog (inline-popup):
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" title="testw">
    <af:form id="f1">
    <af:panelGroupLayout id="pgl1">
    <af:commandLink text="Link"
    id="cl1" useWindow="true"
    immediate="true"
    windowHeight="500" windowWidth="600"
    windowEmbedStyle="inlineDocument"
    inlineStyle="text-align:left;"
    action="testflow"/>
    </af:panelGroupLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    2). The inline popup has a table where I am using double click event on a row.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1" clientComponent="true">
    <af:table value="#{TestdblClick.list}" var="row"
    rowBandingInterval="0" id="t1" rowSelection="single"
    clientComponent="true" binding="#{TestdblClick.contactTable}"
    emptyText="no data" columnStretching="last">
    <af:clientListener method="dblkfunction" type="dblClick"/>
    <af:serverListener type="doubleClickOnRow"
    method="#{TestdblClick.doubleClick}"/>
    <af:clientListener method="singlelkfunction" type="selection"/>
    <af:serverListener type="singleClickOnRow"
    method="#{TestdblClick.singleClick}"/>
    <af:column sortable="false" headerText="Col1" align="start" id="c3"
    rowHeader="unstyled">
    <af:outputText value="#{row.col1}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="Col2" align="start" id="c2">
    <af:outputText value="#{row.col2}" id="ot3"/>
    </af:column>
    <af:column sortable="false" headerText="Col3" align="start" id="c1">
    <af:outputText value="#{row.col3}" id="ot2"/>
    </af:column>
    </af:table>
    </af:form>
    <f:facet name="metaContainer">
    <af:resource type="javascript">
    function dblkfunction(event) {
    var source = event.getSource();
    AdfCustomEvent.queue(source, "doubleClickOnRow",
    },false);
    function singlelkfunction(event) {
    var source = event.getSource();
    AdfCustomEvent.queue(source, "singleClickOnRow",
    false);
    </af:resource>
    </f:facet>
    </af:document>
    </f:view>
    </jsp:root>
    TestdblClick.java
    ====================
    public class TestdblClick {
    public TestdblClick() {
    private RichTable contactTable;
    private List<Testdata2> list = null;
    public List<Testdata2> getList() {
    this.list = new Vector<Testdata2>();
    Testdata2 t1 = new Testdata2 ("joe", "demaggio", "contact");
    Testdata2 t2 = new Testdata2 ("joe2", "demaggio2", "contact");
    Testdata2 t3 = new Testdata2 ("joe3", "demaggio3", "contact");
    list.add(t1);
    list.add(t2);
    list.add(t3);
    return list;
    public void setList(List<Testdata2> list) {
    this.list = list;
    public void singleClick(ClientEvent clientEvent)
    System.out.println("------single click------");
    public void doubleClick(ClientEvent clientEvent)
    System.out.println("------doubleclick------");
    public void setContactTable(RichTable contactTable) {
    this.contactTable = contactTable;
    public RichTable getContactTable() {
    return contactTable;
    If I make "TestdblClick" managed bean as request scope to handle double-click event it works fine, however if I make "TestdblClick" managed bean as pageflow scope (task flow) it does not work when double click is on a text within the table row. I am not sure why pageflowscope should impact the double-click behavior.

  • How to disable right click on a Matrix Cell??

    Hi,
    It is impossible to disable a number of cells in a matrix. So I use the BubbleEvent = False in application item event to disable certain cells. My code is :
    If pVal.FormUID = "MyForm" And pVal.BeforeAction = True And pVal.ItemUID = "MyMatrix" Then
         If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
              If pVal.Row <4 Then
                  BubbleEvent = False
              End If
         End If 
    End If
    It works great with left click. But the cell still can be selected  with a right click button. I've tried this code :
    If pVal.FormUID = "MyForm" And pVal.BeforeAction = True And pVal.ItemUID = "MyMatrix" Then
         If pVal.EventType = SAPbouiCOM.BoEventTypes.et_RIGHT_CLICK Then
              If pVal.Row <4 Then
                  BubbleEvent = False
              End If
         End If 
    End If
    and also this code in application rightclick event :
    Private Sub SBO_Application_RightClickEvent(ByRef eventInfo As SAPbouiCOM.ContextMenuInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.RightClickEvent
         If eventInfo.FormUID = "MyForm" And eventInfo.BeforeAction = True And eventInfo.ItemUID = "MyMatrix" Then
              If eventInfo.Row < 4 Then
                   BubbleEvent = False
              End If
         End If
    End Sub
    But it doesn't work... It just make the right click menu not appear, but I still can click and edit the cell with a right click...
    Is there a trick?
    Regards,
    Rinaldi Sugiono

    It is still the same.. 
    up to now, I use this trick :
    Private Sub SBO_Application_RightClickEvent(ByRef eventInfo As SAPbouiCOM.ContextMenuInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.RightClickEvent
            If eventInfo.FormUID = "MyForm" And eventInfo.BeforeAction = True And eventInfo.ItemUID = "MyMatrix" Then
                If SBO_Application.Forms.Item(eventInfo.FormUID).Items.Item("MyMatrix").Enabled = True And eventInfo.ItemUID = "MyMatrix" Then
                    If eventInfo.Row > 4 Then
                    Else
                        SBO_Application.Forms.Item("MyForm").Items.Item("MyMatrix").Specific.Columns.Item("MyColumn-1").Cells.Item(SBO_Application.Forms.Item("MyForm").Items.Item("MyMatrix").Specific.RowCount).Specific.String =_
                        SBO_Application.Forms.Item("MyForm").Items.Item("MyMatrix").Specific.Columns.Item("MyMatrix").Cells.Item(SBO_Application.Forms.Item("MyForm").Items.Item("MyMatrix").Specific.RowCount).Specific.String + ""
                        BubbleEvent = False
                    End If
                End If
            End If
    End Sub
    But it seems too ineffective... It runs slow, and results some "flicky cell"..
    Edited by: Rinaldi Sugiono on Sep 23, 2010 4:49 AM

  • 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

  • Help with desk top MEMO

    My PALM Desktop software V 4.1.2  All of a suuden in Memos, the memo entries are all together line after line. They are no longer each on a line by temselves. How can I get them back?  All other types ie contacts, tasks are displaying fine. Post rela

  • How can I check the expiration date of a Certificate Keychain from terminal?

    Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights. Specifically

  • Bose QuietComfort 2

    My Bose QuietComfort 2 do not funtion with my Ipod. Do I require an adapter for the Jack?

  • So if I buy the IPhone 4s unlocked, can I use a prepaid plan for At

    I would like to buy the IPhone 4s but I dont want to pay alot of money.

  • Itouch appears to be dead

    My daughter's iTouch is not charging.  I had it on the charger overnight and come to see this morning, the battery power still at 0%.  Is the iTouch dead?  I can't charge it, nor update it, let alone turn it on long enough for me to reset the setting