<?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: update/refresh a simple tree (cl_gui_simple_tree) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029117#M416243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample report&amp;lt;b&amp;gt; BCALV_DND_01&amp;lt;/b&amp;gt; shows how to add nodes to the tree using &amp;lt;i&amp;gt;Drag&amp;amp;Drop&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;In your scenario when the user pushes the CREATE button your application handles the user-command at PAI of the dynro including the adding of the new node to the tree.&lt;/P&gt;&lt;P&gt;In this scenario PAI is followed by PBO of the dynpro where the flushing should occur automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the push button is part of the toolbar then PAI is not passed. In this case you may try the following trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Add the following coding to the method handling the user-command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;... " add node to tree

  CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code( 'REFRESH' ).
" NOTE: this will trigger that PAI of the dynpro is passed&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Add the following coding in the &amp;lt;b&amp;gt;PAI &amp;lt;/b&amp;gt;module handling the user-commands of the dynpro (e.g. USER_COMMAND_0100):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  case gd_okcode.
    WHEN 'REFRESH'.
      CALL METHOD cl_gui_cfw=&amp;gt;flush( ).  " flushing

    WHEN ...
  endcase.&lt;/CODE&gt;&lt;/PRE&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, 22 Mar 2007 10:41:45 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-03-22T10:41:45Z</dc:date>
    <item>
      <title>update/refresh a simple tree (cl_gui_simple_tree)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029116#M416242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ladies and gentleman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a problem with updating/refreshing a simple tree (cl_gui_simple_tree).&lt;/P&gt;&lt;P&gt;Situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i start my 'tree-dynpro' the first time, the tree is displayed correctly. But the tree can be extended by the user via clicking a button 'create new node' e.g.. Therefore a new dynpro will be opened where the user can fill in new data. after clicking the 'save'-button the new entry will correctly stored in my database. and my node-table is also correctly built with the new entry. but my tree doesn't show the new entry. i have to close my program and restart it to view the changes. how can i refresh the tree in realtime without restarting my whole program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 07:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029116#M416242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T07:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: update/refresh a simple tree (cl_gui_simple_tree)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029117#M416243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample report&amp;lt;b&amp;gt; BCALV_DND_01&amp;lt;/b&amp;gt; shows how to add nodes to the tree using &amp;lt;i&amp;gt;Drag&amp;amp;Drop&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;In your scenario when the user pushes the CREATE button your application handles the user-command at PAI of the dynro including the adding of the new node to the tree.&lt;/P&gt;&lt;P&gt;In this scenario PAI is followed by PBO of the dynpro where the flushing should occur automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the push button is part of the toolbar then PAI is not passed. In this case you may try the following trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Add the following coding to the method handling the user-command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;... " add node to tree

  CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code( 'REFRESH' ).
" NOTE: this will trigger that PAI of the dynpro is passed&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Add the following coding in the &amp;lt;b&amp;gt;PAI &amp;lt;/b&amp;gt;module handling the user-commands of the dynpro (e.g. USER_COMMAND_0100):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  case gd_okcode.
    WHEN 'REFRESH'.
      CALL METHOD cl_gui_cfw=&amp;gt;flush( ).  " flushing

    WHEN ...
  endcase.&lt;/CODE&gt;&lt;/PRE&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, 22 Mar 2007 10:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029117#M416243</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-03-22T10:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: update/refresh a simple tree (cl_gui_simple_tree)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029118#M416244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 15:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-refresh-a-simple-tree-cl-gui-simple-tree/m-p/2029118#M416244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T15:52:04Z</dc:date>
    </item>
  </channel>
</rss>

