<?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: cl_gui_chart_engine Bar chart refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202253#M763246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(okay, I know it's out of date, but might be useful to someone somewhere...)&lt;/P&gt;&lt;P&gt;As KAI said, it's not advisable to re-render or repetitively create the viewer object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just re-use the existing container+object, and recall the method to set the graph:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;g_ce_viewer-&amp;gt;set_data( xdata = data_xml ).&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my transaction, we use this to monitor Material Usage. When the user dclicks a material in the list in an ALV grid, an event gets triggered, that researches the Material Usage for that Material, reuses the XML Transformations, then we set the data on the graph. This means that the objects don't get recreated, but the data presented to the user changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PatrickFontDean on Sep 14, 2011 5:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 15:54:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-14T15:54:50Z</dc:date>
    <item>
      <title>cl_gui_chart_engine Bar chart refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202251#M763244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using cl_gui_chart_engine to show barchart. But i want to show 10 records at one time. I manage to do the itab and xml data changing part using a button click. But when i use command  call method g_ce_viewer-&amp;gt;render, it doesn't show the updated records.&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>Wed, 12 Dec 2007 09:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202251#M763244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T09:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_chart_engine Bar chart refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202252#M763245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when updating the data you only call set_data again followed by render?&lt;/P&gt;&lt;P&gt;Or do you erroneously create a new instance of cl_gui_chart_engine once again? I saw such mistakes several times where the old instance wasn't reused and as a consequence several charts were created (all in the same gui container)...&lt;/P&gt;&lt;P&gt;Regards, Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 16:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202252#M763245</guid>
      <dc:creator>kai_gutenkunst</dc:creator>
      <dc:date>2007-12-12T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_chart_engine Bar chart refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202253#M763246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(okay, I know it's out of date, but might be useful to someone somewhere...)&lt;/P&gt;&lt;P&gt;As KAI said, it's not advisable to re-render or repetitively create the viewer object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just re-use the existing container+object, and recall the method to set the graph:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;g_ce_viewer-&amp;gt;set_data( xdata = data_xml ).&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my transaction, we use this to monitor Material Usage. When the user dclicks a material in the list in an ALV grid, an event gets triggered, that researches the Material Usage for that Material, reuses the XML Transformations, then we set the data on the graph. This means that the objects don't get recreated, but the data presented to the user changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PatrickFontDean on Sep 14, 2011 5:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-chart-engine-bar-chart-refresh/m-p/3202253#M763246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-14T15:54:50Z</dc:date>
    </item>
  </channel>
</rss>

