ALV-Tree Node click not working

Hi All,
I am displaying the data in ALV tree. When the user click on the node i want to capture some event and method in which i have to do some coding. Can you tell me which method and  event i should use to achieve this functionality. its bit urgent.
Immediate response will be apprecited.
Regards,
Ranjan

Hi ,
I have gone through the link. I have done the below part in my coding even though when i double click on the node, the event node_double_click is not getting triggered. Kindly suggest me what i have missed.
1) Register event with tree instance:
Register event for NODE_DOUBLE_CLICK
l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
APPEND l_event TO lt_events.
(2) Set handler for event:
SET HANDLER l_event_receiver->handle_node_double_click FOR tree1
(3) Define and implement event handler method:
METHODS handle_node_double_click
FOR EVENT node_double_click OF cl_gui_alv_tree
IMPORTING node_key.
ENDCLASS. "lcl_tree_event_receiver DEFINITION
CLASS lcl_tree_event_receiver IMPLEMENTATION
CLASS lcl_tree_event_receiver IMPLEMENTATION.
METHOD handle_node_double_click.
break-point.
ENDMETHOD. "handle_node_double_click
Regards,
Ranjan

Similar Messages

  • Quick Info on ALV Tree node

    Hi All,
    I have this requirement.
    On ALV Tree node, when user places cursor then i should display some text as quick info.
    while create node i have used ICON <- left arrow, i cannot use other ICOn as functional person need this icon only.
    During Add_Node, if I pass icon through node layout then its showing nothing, Instead if I pass icon through item layout, then its showing SAP standard ICON text left arrow , but i need custom text write text  there.
    I tried using Context_menu_req as well, even that didnt worked. Any ideas/views will be highly appreciated.
    Thanks n Regards

    Hi Mr A.
    You can try the following:
    DATA: l_node_text TYPE lvc_value.
    DATA: ls_item_layo TYPE lvc_s_layi,
                 lt_item_layo TYPE lvc_t_layi.
            l_node_text             = 'UR Text'
            ls_item_layo-style      = gs_detail-color_code.
            ls_item_layo-t_image    = gs_detail-icon.
            APPEND ls_item_layo TO lt_item_layo.
    After the above mentioned statement, you may call 'Add Node' method of ALV Tree.
    Regards
    Waz

  • 2008 Macbook pro left click not working properly after upgrading to 10.6.8

    I have a 2008 Macbook pro and a few months ago after upgrading to 10.6.8 my left click has been wonky.
    Using the trackpad the left click eventually gets "stuck" or stops responding and I have to push it multiple times before it does anything.  I have tried plugging in a mouse, but when I do so the mouse also behaves the same way.  The only way I seem to be able to get the clicking to work properly is to restart the computer with the mouse attached.
    I have seen threads about trackpads being messed up by swollen batteries, but my battery is brand new and looks fine, and the clicking problem extends to an external mouse, so I believe it is something with the preferences.
    I tried deleting  com.apple.driver.AppleBluetoothMultitouchTrackpad.plist   and restarting and the problem seemed to be fixed, but then after about a half hour it returned.
    Having to keep a mouse plugged into my macbook is driving me crazy, anyone know a solution?

    I started having the same issue after update.  I'm on a MacBookpro running 10.7.2
    ICalled apple and they did a remove battery reboot, a reload lion and a option/command/R/P reboot on startup and then the computer started working.  Two days later problem was back.  I then did a reboot and the computer was back to working.  Today the computer worked fine tell it went to sleep.  I had to do a hard reboot to get the Mac up and running and now no left click.  Please help. I can not use the Mac  with the trackpad, a mouse, a Bluetooth mouse, or a digital pad. All so signs of left mouse click not working.  One other item when you go to pick your user at startup the left mouse click works.  Help!

  • Why double click not working ?

    if the system have wizip/winrar installed...does it block to run executable jar whence they are doble-clicked ?
    because when i doble-click on the executable jar file....it opens up in the winrar...it displays all the directory structure in the jar file.....but it never executes.
    i have a jar in c:\
    and i can run this way....
    C:\>java -jar psae.jar Philip
    Hello World Philip
    why double click not working ?

    This is because winzip or winrar has taken over the
    Windows association with files of type .jar.
    Assuming XP.YES.....its windows XP.
    Click on the tools menu in any explorer window,
    select "folder options" and choose the "file type"
    tab. i tried that also earlier....anyway, here again one more time
    please look at
    http://img107.imageshack.us/my.php?image=nojar7ah.jpg
    There is NO .JAR file association i find in that list.
    you need to change the associaton of 'jar' to
    "Opens with Java"

  • Aspx menus and click not working

    It's hard to explain the problem, but this site will demonstrate what I mean: http://ic4uae.ae/Default.aspx
    as show in the picture, when I hover on "shop by department", a menu should appear, but its not!
    when I click on "sign in" a log-in window should appear, but its not!
    all the clicks not working in such sites!
    this problem is not browser-related, I've tried many of them.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, or by a peripheral device.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • How to alter the alv tree node text?

    hi
      i want to alter the alv tree node text, many people say it cann't be changed, but
    i look into the sample code 'BCALV_TREE_04', the average funtion(select a column and then select average function in the tool bar) can alter the tree node text dynamically.
      i try to look into the source code, the it's the sap standard code, all the funtions that user input, it goes to the statement "  CALL METHOD cl_gui_cfw=>dispatch.", and i don't understand what this statement do, can someone helps me?

    hi
    good
    The ALV tree report produces uses OBJECT METHOD functionality in-order to produce a
    tree structured ALV output. 
    The creation of an ALVtree report first requires the creation of a simple program to build the ALV
    details such as the fieldcatalog and to call a screen which will be used to display the ALVTree.
    The screen should be created with a 'custom control' where you wish the ALVtree report to appear.
    For the following example it will have the name 'SCREEN_CONTAINER'.
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm
    reward point if helpful.
    thanks
    mrutyun^

  • Magic Trackpad's One Finger "Tap to Click" Not Working in Login Window?

    Magic Trackpad's *One Finger* "Tap to Click" Not Working in Login Window:
    All of my iMac's accounts have *One Finger* "Tap to Click" turned on (checked) in System Preferences. However, in the Login Window where the user decides which account to login to, the Magic Trackpad's clicking ability does not work even though moving the arrow does work. How do I turn on the Magic Trackpad's ability to click in the Login Window?

    After accidentally pressing down on the Magic Trackpad, I realized the trackpad has tactile feedback, that is, it is a big button that can be pressed down and pop back up like old computer mice. Though this will allow the trackpad to select the account I want to open in the Login Window, it still doesn't explain why "tap to click" isn't working in the Login Window. Nevertheless, my question can be considered as answered.

  • Clicking a tree node does not refresh the fields in the table component

    hi all,
    I am using a tree component along with a table component in my page.so whenever i am clicking on a node it should display the relevant information of that node in the table from the database.But whenever i am doing the page is not refreshing and the old values of the textfields in the table still exist.i have written the code to populate the table in a button click event.It is working fine but the same is not working when i am clicking any node in the tree component.Can anyone provide a solution to this problem.
    Thanks and regards,
    Prasant Kumar

    Never mind... I actually found something that works...
    treeModel.nodeStructureChanged(leadSelection);

  • JTree - Sometimes tree node is not selected, while clicking it using mouse

    Hi,
    I'm sure that it is a very rare scenario.But ,sometimes i couldnt select a tree node on mouse click.It happens very rarely and simulating the behaviour is not possible.If anyone have gone thru this,plz repond.
    Thanks,
    Kathir

    did you try debug with a breakPoint on mouseListener->mouseClick event, and see if the selectionModel changes?

  • WHEN-TREE-NODE-EXPANDED not fire with keyboard in FORMS 10G

    I have a Hierarchical Tree. When i click in any node with mouse, works fine.
    When i use the key rigth and left of the keyboard, the tree expanded, but not fire the WHEN-TREE-NODE-EXPANDED.
    In FORMS 6i works fine.

    It's a bug 4509399. There is a oneoff patch on Metalink:
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:4034066994841324251::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,331369.1,1,1,1,helvetica

  • Perf Mon: Open PMUs & Open PMU Trees options are not working...

    Monitoring System: Windows, PeopleTools 8.49 Patch 13. Database, web, app, process scheduler all in one system and OS is windows.
    Monitored Systems:
    1) Self monitoring system: OS- Windows, PeopleTools 8.49 Patch 13.
    2) Fin Demo - People Tools: 8.46.14 - HP Unix 11i,all web, app, process scheduler on HP Unix, 11i.
    Both the Open PMUs & Open PMU Trees option in performance monitor supposes to display current open PMUs data, ran long running queries
    on Monitored systems we are not seeing any data for open PMUS with either Open PMUs or PMU Tress options in Monitoring system.
    Do have the same issue on a diff setting(follows):
    Monitoring System:
    People Tools Version: 8.46.14
    Monitored Systems:
    Fin Demo - People Tools: 8.46.14
    Inv Dev - People Tools: 8.45.13
    Any thoughts why its not working?
    Thx/T

    I am not sure if I can help you but you must first try to identify your problem more specifically. From the man page of evdev, I see:
    Option "EmulateThirdButton" "boolean"
    Enable third button emulation. Third button emulation emits a right button event (by default) by pressing
    and holding the first button. The first button must be held down for the configured timeout and must not
    move more than the configured threshold for the emulation to activate. Otherwise, the first button event
    is posted as normal. Default: off. Property: "Evdev Third Button Emulation".
    The first thing I would check, is how to "press and hold the first button" (from a system point of view). When you click down  the first button, the system should see a NotifyGrab event, when you release the button a NotifyUngrab event. Is this actually what the system see? Try to disable any configuration files and see the output of evdev. Are you able to generate a NotifyGrab event with no NotifyUngrab?

  • Tree Node selected not firing all the time

    I have a tree menu that calls other forms when the user selects a tree branch (see
    When-tree-node-selected trigger below).
    This works fine, but if the user closes the form and want to re-open it, the trigger doesn't fire unless the user clicks off the branch item and back on it. How can I make it work whenever the user clocks the branch item?
    if :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' then null;
    node_value := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
    open_a_form(l_form,l_module,l_form_code);
    end if;

    Have you tried setting the node the node to deselected programmatically?

  • htmlb:tree : Node IDs not unique - error handling

    From an internal table of customers and contact persons, I made a tree using TVIEWNODE2 structure. Some of the customers are not having contact persons for which contact person ids are simply '00000000'. Thus these nodes may not be unique here. Somehow everything is working fine but sometimes I am getting the above error mentioned in subject.
    Actually I have a tabstrip and one of the items of tabstrip contains tree. The occurrence of this error is not at all uniform , sometimes it works and sometimes don't. It's very difficult to find when and why it's triggered. In the same situation and circumstances sometimes it works and sometimes doesn't.Appearance of this error is irrespective of whether tree is operated or any other event is handled.
    Can anybody throw light on this? Thanks in advance.

    hi thomas
    you are absolutely correct when you say that the error occurs in the second request cycle. do i need to clear the tree table then?
    As you said , if the application is stateful, the best place is 'On create' event to write the code. But my application is stateless and that is why I am hesitant to put the code in 'On create' and rather placed it in 'On request' event where I am getting the cookie of internal table from which I am preparing tree table.
    So, I think keeping the code in 'On request' as before but ensuring that the table is cleared everytime will solve the problem. But let me check this and tell you.
    I am very thankful for your quick replies and focussing on my problem. thanks a lot.
    I will let you know the outcome soon.
    regards
    jawahar

  • ALV Tree Report--clicking on a row....

    Hello Experts,
    i have a alv tree report.my requirement is,
    "Selecting a row means clicking on record  and then click on a another button called YES ,For other functionality i need to capture the row '.
    How can i solve this  problem.
    Thanks,
    Sridhar.

    hi check this..
    REPORT  z_simpletree.
    type pool declarations for tree
    TYPE-POOLS : fibs,stree.
    *Data declaration for additional node information
    DATA : t_node TYPE snodetext.
    *Internal table and wa decl for nodes
    DATA : it_node LIKE TABLE OF t_node INITIAL SIZE 0,
           wa_node LIKE t_node.
    *Internal table and wa decl for Education table PA0022
    DATA : it_0022 TYPE STANDARD TABLE OF pa0022 INITIAL SIZE 0,
           wa_0022 TYPE pa0022.
    *Internal table and wa decl for text table t517x
    DATA : it_517x TYPE STANDARD TABLE OF t517x INITIAL SIZE 0,
           wa_517x TYPE t517x.
    *Internal table and wa decl for text table t517T
    DATA : it_517t TYPE STANDARD TABLE OF t517t INITIAL SIZE 0,
           wa_517t TYPE t517t.
    *Internal table and wa decl for text table t519T
    DATA : it_519t TYPE STANDARD TABLE OF t519t INITIAL SIZE 0,
           wa_519t TYPE t519t.
    *initialization event
    INITIALIZATION.
    *Start of selection  event
    START-OF-SELECTION.
    *Select the data for tree
      PERFORM fetch_data.
    *Build the hierarchy for tree
      PERFORM build_hierarchy.
    *Build Tree for display
      PERFORM build_tree.
    *&      Form  fetch_data
          text
    -->  p1        text
    <--  p2        text
    FORM fetch_data .
    *select data from PA0022
      SELECT * FROM pa0022 INTO CORRESPONDING FIELDS OF TABLE it_0022
       UP TO 50 ROWS.
    *select data from T517x
      SELECT * FROM t517x INTO CORRESPONDING FIELDS OF TABLE it_517x
       WHERE langu = 'E'.
    *select data from T517T
      SELECT * FROM t517t INTO CORRESPONDING FIELDS OF TABLE it_517t
       WHERE sprsl = 'E'.
    *select data from T519t
      SELECT * FROM t519t INTO CORRESPONDING FIELDS OF TABLE it_519t
       WHERE sprsl = 'E'.
      ENDFORM.                    " fetch_data
    *&      Form  build_hierarchy
          text
    -->  p1        text
    <--  p2        text
    FORM build_hierarchy .
    *Building the nodes and hierarchy for tree
      CLEAR : it_node[],
      wa_node.
      wa_node-type = 'T'.
      wa_node-name = 'Education'.
      wa_node-tlevel = '01'.
      wa_node-nlength = '15'.
      wa_node-color = '4'.
      wa_node-text = 'Infotype 0022'.
      wa_node-tlength ='20'.
      wa_node-tcolor = 3.
      APPEND wa_node TO it_node.
      CLEAR wa_node.
    *Filling the values of internal table into tree
      LOOP AT it_0022 INTO wa_0022.
        wa_node-type = 'P'.
        wa_node-name = 'PERNR'.
        wa_node-tlevel = '02'.
        wa_node-nlength = '8'.
        wa_node-color = '1'.
        wa_node-text = wa_0022-pernr.
        wa_node-tlength ='20'.
        wa_node-tcolor = 4.
        APPEND wa_node TO it_node.
        CLEAR wa_node.
    *Filling the text of T517t
        READ TABLE it_517t INTO wa_517t WITH KEY slart = wa_0022-slart.
        wa_node-type = 'P'.
        wa_node-name = wa_0022-slart.
        wa_node-tlevel = '03'.
        wa_node-nlength = '8'.
        wa_node-color = '1'.
        wa_node-text = wa_517t-stext.
        wa_node-tlength ='40'.
        wa_node-tcolor = 4.
        APPEND wa_node TO it_node.
        CLEAR wa_node.
    *Filling the text of T519t
        READ TABLE it_519t INTO wa_519t WITH KEY slabs = wa_0022-slabs.
        wa_node-type = 'P'.
        wa_node-name = wa_0022-slabs.
        wa_node-tlevel = '04'.
        wa_node-nlength = '8'.
        wa_node-color = '2'.
        wa_node-text = wa_519t-stext.
        wa_node-tlength ='40'.
        wa_node-tcolor = 4.
        APPEND wa_node TO it_node.
        CLEAR wa_node.
    *Filling the text of T517x
        READ TABLE it_517x INTO wa_517x WITH KEY faart = wa_0022-sltp1.
        wa_node-type = 'P'.
        wa_node-name = wa_0022-sltp1.
        wa_node-tlevel = '05'.
        wa_node-nlength = '8'.
        wa_node-color = '1'.
        wa_node-text = wa_517x-ftext.
        wa_node-tlength ='40'.
        wa_node-tcolor = 4.
        APPEND wa_node TO it_node.
        CLEAR wa_node.
        wa_node-type = 'P'.
        wa_node-tlevel = '06'.
        wa_node-nlength = '8'.
        wa_node-color = '1'.
        wa_node-text = '% Completed'.
        wa_node-tlength ='15'.
        wa_node-tcolor = 4.
        APPEND wa_node TO it_node.
        CLEAR wa_node.
        ENDLOOP.
        ENDFORM.                    " build_hierarchy
    *&      Form  build_tree
          text
    -->  p1        text
    <--  p2        text
    FORM build_tree .
    *Fm for constructing the tree
      CALL FUNCTION 'RS_TREE_CONSTRUCT'
        TABLES
         nodetab = it_node.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *FM for displaying the tree
      CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
        EXPORTING
          callback_program     = sy-repid
          check_duplicate_name = '1'
          color_of_node        = '3'
          color_of_mark        = '3'
          color_of_link        = '1'
          color_of_match       = '5'
          node_length          = 30
          text_length          = 75
          use_control          = 'L'.ENDFORM.                    " build_tree
    regards,
    venkat

  • Ctrl and left click not working in DW CS5

    When Im working in design view for some reason my links are not working when I press ctrl and left click. To make them work I have to right click and select follow link.
    Its not a major problem because I can still carry on, but its annoying!

    Mr Construction wrote:
    When Im working in design view for some reason my links are not working when I press ctrl and left click.
    I presume you're talking about Live View, because links don't work in Design view.
    One thing you can try is selecting View > Live View Options > Follow Links Continuously, or select the option from the Live View Options menu in the Browser Navigation toolbar.
    It works only for the current tab, but is useful if you're following a lot of links.

Maybe you are looking for