<?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 Simple Tree Model Control Not Getting Data Refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336305#M1638653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAP Simple Tree Model ,( Class CL_SIMPLE_TREE_MODEL ) to create a simple tree hierarchy .The hierarchy is populated based on some input from the user in the previous screen .So what happens is if a user select a node and goes back and changes the selection criteria tree hierarchy should also be refreshed but it is not happening .I have already called the &lt;/P&gt;&lt;P&gt;customer_container-&amp;gt;free method and recreating the object again .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 08:44:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-08T08:44:58Z</dc:date>
    <item>
      <title>Simple Tree Model Control Not Getting Data Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336305#M1638653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAP Simple Tree Model ,( Class CL_SIMPLE_TREE_MODEL ) to create a simple tree hierarchy .The hierarchy is populated based on some input from the user in the previous screen .So what happens is if a user select a node and goes back and changes the selection criteria tree hierarchy should also be refreshed but it is not happening .I have already called the &lt;/P&gt;&lt;P&gt;customer_container-&amp;gt;free method and recreating the object again .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 08:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336305#M1638653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T08:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Tree Model Control Not Getting Data Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336306#M1638654</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;Can you put the code snippet, it will help to analyze the problem better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 08:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336306#M1638654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T08:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Tree Model Control Not Getting Data Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336307#M1638655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;There are 2 GUI screens :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen 1 ) User selects an hierarchy based on which the hierarchy is populated on Screen 2.&lt;/P&gt;&lt;P&gt;Screen 2) On the basis of the hierarchy selected on the first screen the tree is populated on the second screen .&lt;/P&gt;&lt;P&gt;create object gv_application.&lt;/P&gt;&lt;P&gt;  DATA:  lv_event TYPE cntl_simple_event,&lt;/P&gt;&lt;P&gt;         lv_events TYPE cntl_simple_events.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a container for the tree control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT gv_custom_container_resp&lt;/P&gt;&lt;P&gt;    EXPORTING      " the container is linked to the custom control with the&lt;/P&gt;&lt;P&gt;          " name 'TREE_CONTAINER' on the dynpro&lt;/P&gt;&lt;P&gt;      container_name              = 'TREE_CONTAINER'&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;      create_error                = 3&lt;/P&gt;&lt;P&gt;      lifetime_error              = 4&lt;/P&gt;&lt;P&gt;      lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   message a001.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a simple tree model instance&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT gv_tree&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      node_selection_mode         = cl_simple_tree_model=&amp;gt;node_sel_mode_single&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_node_selection_mode = 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   message a001.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create the view (control) of the tree model&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD gv_tree-&amp;gt;create_tree_control&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      parent                       = gv_custom_container_resp&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      lifetime_error               = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error            = 2&lt;/P&gt;&lt;P&gt;      create_error                 = 3&lt;/P&gt;&lt;P&gt;      failed                       = 4&lt;/P&gt;&lt;P&gt;      tree_control_already_created = 5.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   message a001.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;define the events which will be passed to the backend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  " node double click&lt;/P&gt;&lt;P&gt;  lv_event-eventid = cl_simple_tree_model=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;  lv_event-appl_event = 'X'.              " process PAI if event occurs&lt;/P&gt;&lt;P&gt;  APPEND lv_event TO lv_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD gv_tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      events                    = lv_events&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_event_combination = 1&lt;/P&gt;&lt;P&gt;      unknown_event             = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   message a001.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&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 gv_application-&amp;gt;handle_node_double_click FOR gv_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add nodes to the tree model&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM add_nodes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 09:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336307#M1638655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T09:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Tree Model Control Not Getting Data Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336308#M1638656</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;clear gv_tree as well . it should work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im not sure at what point of time your are clearing fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you have to clear those variable at exit command,please check SAP sample programs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PAI:

WHEN 'BACK' 'CANCEL' or 'EXIT'.
  clear :gv_custom_container_resp
          call method gv_custom_container_resp-&amp;gt;free
          exceptions
            cntl_system_error = 1
            cntl_error        = 2.
        if sy-subrc &amp;lt;&amp;gt; 0.
          message a000.
        endif.
 clear gv_tree.
  leave screen.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Peram on Nov 9, 2011 10:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 09:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336308#M1638656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T09:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Tree Model Control Not Getting Data Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336309#M1638657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already done that.I read on help.sap.com on SAP tree model that SAP tree model control buffers the data .Can anyone help me if we can explicitly clear this buffer because to me it looks like a buffer issue .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 09:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-model-control-not-getting-data-refresh/m-p/8336309#M1638657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T09:35:54Z</dc:date>
    </item>
  </channel>
</rss>

