<?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 Resize docking container at runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251893#M1527707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi container addicts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report has a selection screen. Below I create a docking container (with SALV grid) docked at bottom with calculated extension that the select-options are still visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer wants a toggle button to extend the control to the full screen area and make it small again to have the selections visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will I have to destroy the container and then recreate container and grid with different size or can I re-size the container at run time dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for useful hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Sep 2010 22:08:20 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2010-09-11T22:08:20Z</dc:date>
    <item>
      <title>Resize docking container at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251893#M1527707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi container addicts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report has a selection screen. Below I create a docking container (with SALV grid) docked at bottom with calculated extension that the select-options are still visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer wants a toggle button to extend the control to the full screen area and make it small again to have the selections visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will I have to destroy the container and then recreate container and grid with different size or can I re-size the container at run time dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for useful hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Sep 2010 22:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251893#M1527707</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-09-11T22:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Resize docking container at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251894#M1527708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SET_EXTENSION method is available for you to use to reset the extension value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Sep 2010 01:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251894#M1527708</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2010-09-12T01:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Resize docking container at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251895#M1527709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works fine. Obviously the extension is measured in something like points or pixels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tied a dynamic solution regarding the actual screen size with constants for the selection screen area (mc_rows_selection_area. = 4) and estimated pixels per row mc_graph_units_per_row = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works approximately, but not too exact. Are you aware of any methods to determine the full screen size (without standard tool bar) in the kind of units we need for SET_EXTENSION method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* provide dynamic screen space
  IF sy-srows &amp;lt;= mc_rows_selection_area.
    lv_srows = mc_rows_selection_area.
  ELSE.
    lv_srows = sy-srows - mc_rows_selection_area.
  ENDIF.
* extension in pixels(?) as n pixels per row
  lv_extension = mc_graph_units_per_row * lv_srows.
  set_docking_extension( lv_extension ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Sep 2010 13:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resize-docking-container-at-runtime/m-p/7251895#M1527709</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-09-12T13:32:33Z</dc:date>
    </item>
  </channel>
</rss>

