<?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: Last menu tree node in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/last-menu-tree-node/m-p/6487432#M1419859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Take a look at this program and it will meet your functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://wiki.sdn.sap.com/wiki/display/SCM/SCM&lt;EM&gt;Order&lt;/EM&gt;Status&lt;EM&gt;Management&lt;/EM&gt;Report]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 08:30:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T08:30:08Z</dc:date>
    <item>
      <title>Last menu tree node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/last-menu-tree-node/m-p/6487431#M1419858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The nodes of the menu tree in my program are all folders.  The folder should be open upon double click of that node.  The last node is a folder and does not have any children.  But upon double click of that last folder node, it does not open and the folder preceeding it remains open.  How do I solve this?&lt;/P&gt;&lt;P&gt;I put a expand_no_children event but it seems it does not pass thru its method.&lt;/P&gt;&lt;P&gt;I have this in the PBO area of my screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  " node double click&lt;/P&gt;&lt;P&gt;  lw_event-eventid = cl_gui_simple_tree=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;  lw_event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND lw_event TO lt_events.&lt;/P&gt;&lt;P&gt;  " expand no child&lt;/P&gt;&lt;P&gt;  lw_event-eventid = cl_gui_simple_tree=&amp;gt;eventid_expand_no_children.&lt;/P&gt;&lt;P&gt;  lw_event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND lw_event TO lt_events.&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      events                    = lt_events&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error                = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error         = 2&lt;/P&gt;&lt;P&gt;      illegal_event_combination = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE a000(tree_control_msg).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;assign event handlers in the application class to each desired event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SET HANDLER g_application-&amp;gt;handle_node_double_click FOR g_tree.&lt;/P&gt;&lt;P&gt;  SET HANDLER g_application-&amp;gt;handle_expand_no_children FOR g_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another event I should use? Or is there a setting I should tick in the definition of the nodes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lw_node-node_key = 'ROOT'.       " Root/Key of the node&lt;/P&gt;&lt;P&gt;  lw_node-text = text-t01.&lt;/P&gt;&lt;P&gt;  CLEAR lw_node-relatkey.          " Special case: A root node has no parent&lt;/P&gt;&lt;P&gt;  CLEAR lw_node-relatship.         " node.&lt;/P&gt;&lt;P&gt;  lw_node-hidden = ' '.            " The node is visible,&lt;/P&gt;&lt;P&gt;  lw_node-disabled = ' '.          " Selectable&lt;/P&gt;&lt;P&gt;  lw_node-isfolder = 'X'.          " Folder&lt;/P&gt;&lt;P&gt;  CLEAR lw_node-n_image.           " Folder-/ Leaf-Symbol in state "closed":&lt;/P&gt;&lt;P&gt;  lw_node-exp_image = 'X'.         " Folder-/ Leaf-Symbol in state "open":&lt;/P&gt;&lt;P&gt;  CLEAR lw_node-expander.          " the width of the item is adjusted to its content (text)&lt;/P&gt;&lt;P&gt;  APPEND lw_node TO gt_nodetab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Node with key 'Child1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR lw_node.&lt;/P&gt;&lt;P&gt;  lw_node-node_key = 'CHILD1'.     " Key of the node&lt;/P&gt;&lt;P&gt;  lw_node-text = text-t02.&lt;/P&gt;&lt;P&gt;  lw_node-relatkey = 'ROOT'.&lt;/P&gt;&lt;P&gt;  lw_node-relatship = cl_gui_list_tree=&amp;gt;relat_last_child.&lt;/P&gt;&lt;P&gt;  lw_node-isfolder = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND lw_node TO gt_nodetab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 10:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/last-menu-tree-node/m-p/6487431#M1419858</guid>
      <dc:creator>giancarla_aguilar</dc:creator>
      <dc:date>2010-01-14T10:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Last menu tree node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/last-menu-tree-node/m-p/6487432#M1419859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Take a look at this program and it will meet your functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://wiki.sdn.sap.com/wiki/display/SCM/SCM&lt;EM&gt;Order&lt;/EM&gt;Status&lt;EM&gt;Management&lt;/EM&gt;Report]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aveek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 08:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/last-menu-tree-node/m-p/6487432#M1419859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T08:30:08Z</dc:date>
    </item>
  </channel>
</rss>

