<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Right Click on Tree Node in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253569#M1213638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;atul mishra &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i solved the problem , how  to rewd   pts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Mar 2010 07:37:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-01T07:37:40Z</dc:date>
    <item>
      <title>Right Click on Tree Node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253564#M1213633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to implement RIGHT CLICK event in tree node display, which is already contain drag&amp;amp;drop functionality.&lt;/P&gt;&lt;P&gt;I tried to register this RIGHT CLICK event in the same perform of drag and drop resgistration but it gives short dump with description ILLEGAL EVENT COMBINATION....&lt;/P&gt;&lt;P&gt;Please guide...&lt;/P&gt;&lt;P&gt;Siva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253564#M1213633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Right Click on Tree Node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253565#M1213634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to register event "eventid_item_context_menu_req".&lt;/P&gt;&lt;P&gt;set the handler for method "handle_item_ctmenu_request" and "handle_item_ctmenu_selected".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement method handle_item_ctmenu_request &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  method handle_item_ctmenu_request .&lt;/P&gt;&lt;P&gt;      call method menu-&amp;gt;add_function&lt;/P&gt;&lt;P&gt;                exporting fcode   = 'USER1'&lt;/P&gt;&lt;P&gt;                              text    = 'Usercmd 1'.                  &lt;/P&gt;&lt;P&gt;   endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above method will add the given input on right clock button popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement handle_item_ctmenu_selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  method handle_item_ctmenu_selected.&lt;/P&gt;&lt;P&gt;    case fcode.&lt;/P&gt;&lt;P&gt;      when 'USER1'.&lt;/P&gt;&lt;P&gt;      when other.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;  endmethod.    &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;above method will be action of added input on right click popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 06:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253565#M1213634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Right Click on Tree Node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253566#M1213635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can follow the following steps:-&lt;/P&gt;&lt;P&gt;- Create local class (eg:- lcl_screen_handler) as handler class.&lt;/P&gt;&lt;P&gt;- Define and implement methods handle_node_context_menu_req and handle_node_context_menu_sel for handling right click.&lt;/P&gt;&lt;P&gt;- In Method handle_node_context_menu_req use CALL METHOD menu-&amp;gt;add_function for adding entries to context menu.&lt;/P&gt;&lt;P&gt;- In Method handle_node_context_menu_sel based on node_key and fcode handle logic for right click.&lt;/P&gt;&lt;P&gt;- Define event handler (eg:- grc_event_handler     TYPE REF TO lcl_screen_handler) to handle events for right click on tree.&lt;/P&gt;&lt;P&gt;- After creating Tree, specify events that are to be handled and assign them to tree instance&lt;/P&gt;&lt;P&gt;eg:- lwa_event-eventid = cl_simple_tree_model=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;      lwa_event-appl_event = ' '.   "system event, does not trigger PAI&lt;/P&gt;&lt;P&gt;      APPEND lwa_event TO lit_event. (where, lit_event TYPE cntl_simple_events)&lt;/P&gt;&lt;P&gt;- Also, register PAI for context menu as follows:-&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Process PAI if context menu select event occurs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD grc_tree-&amp;gt;set_ctx_menu_select_event_appl (where grc_tree is Tree instance)&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      appl_event = 'X'.&lt;/P&gt;&lt;P&gt;- Register Tree events as follows:-&lt;/P&gt;&lt;P&gt;CALL METHOD grc_tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      events                    = lit_event ....&lt;/P&gt;&lt;P&gt;- Create event handler instance for tree&lt;/P&gt;&lt;P&gt;  CREATE OBJECT grc_event_handler. (where, grc_event_handler is already declared on top)&lt;/P&gt;&lt;P&gt;- Set event handler method to handle various events on tree node&lt;/P&gt;&lt;P&gt;eg:-  SET HANDLER grc_event_handler-&amp;gt;handle_node_double_click FOR grc_tree.&lt;/P&gt;&lt;P&gt;        SET HANDLER grc_event_handler-&amp;gt;handle_node_context_menu_req FOR grc_tree.&lt;/P&gt;&lt;P&gt;        SET HANDLER grc_event_handler-&amp;gt;handle_node_context_menu_sel FOR grc_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The events should be handled now. I have followed this approach and it worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 03:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253566#M1213635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T03:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Right Click on Tree Node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253567#M1213636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Siva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quite frequently this problem (ILLEGAL EVENT COMBINATION) is due to the fact that multiple selection of nodes / items is allowed yet a few of the registered events require a uniquely selected node or item. Calling context menus on multiple selected odes usually does not make sense. So check your CONSTRUCTOR method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 08:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253567#M1213636</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-26T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Right Click on Tree Node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253568#M1213637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks , i solved my problem by reading this thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 07:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253568#M1213637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T07:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Right Click on Tree Node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253569#M1213638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;atul mishra &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i solved the problem , how  to rewd   pts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 07:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/right-click-on-tree-node/m-p/5253569#M1213638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T07:37:40Z</dc:date>
    </item>
  </channel>
</rss>

