<?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: Changing width of a custom container dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866822#M49157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, I would like to thank everybody for their help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally ended up using the splitter container approach - initially I tried to avoid it because I had to change the layout of multiple screens. It looks like this is the (only?) best way to go and since I had to touch all these modules anyway, I put in some additional changes and cosmetics.&lt;/P&gt;&lt;P&gt;One of these moments where one single change request triggers quite a bit of reengineering...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks everybody!&lt;/P&gt;&lt;P&gt;Guenther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jan 2005 21:00:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-31T21:00:04Z</dc:date>
    <item>
      <title>Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866816#M49151</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;I have an ABAP report that has 2 custom containers on a screen: CC1 on the left, showing a tree and another one (CC2) consuming the rest of the screen. Depending on what node the user selects in the tree (left CC), I would like to dynamically adjust the width of CC1 and CC2.&lt;/P&gt;&lt;P&gt;Is there a way to do it? I found the method SET_WIDTH of CL_GUI_CUSTOM_CONTAINER (which CC1 and CC2 are instances of), but it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Guenther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2005 14:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866816#M49151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-28T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866817#M49152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guenther,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you call the following after the change:&lt;/P&gt;&lt;P&gt;        CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            CNTL_SYSTEM_ERROR = 1&lt;/P&gt;&lt;P&gt;            CNTL_ERROR        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or possibly Did you call the function module 'CONTROL_FLUSH' after the change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2005 14:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866817#M49152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-28T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866818#M49153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guenther,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the options that you must consider is the docking container, which would also allow the user the flexibility to resize the screen as he likes. And I think it makes for better UI design and is also easy to program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2005 14:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866818#M49153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-28T14:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866819#M49154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guenther&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Docking container is OK and may be more feasible for some cases, however I would prefer the &amp;lt;b&amp;gt;splitter container&amp;lt;/b&amp;gt; if it suits to your needs. You can inspect relevant classes and demo programs by searching with "&lt;STRONG&gt;SPLITTER&lt;/STRONG&gt;" mask.&lt;/P&gt;&lt;P&gt;Easy splitter (&amp;lt;b&amp;gt;CL_GUI_EASY_SPLITTER_CONTAINER&amp;lt;/b&amp;gt;) is a lite version, but if you need more features than it offers you can use the classical one (&amp;lt;b&amp;gt;CL_GUI_SPLITTER_CONTAINER&amp;lt;/b&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you find this helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2005 21:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866819#M49154</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-28T21:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866820#M49155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a coding example that demonstrates dynamically changing the width of the container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you cannot see is the screen definition.  Screen 100 has a single custom container that fills the entire screen and is set to be resizable.  The container name is 'MY_CONTAINER'.  Next screen is set to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow logic of screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.

  MODULE pbo.

PROCESS AFTER INPUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cut and paste this program and define the screen.  Run the program and keep hitting ENTER to see the size change from left to right.  After 9 times, the program will end.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zcdf_docking_example.

DATA:
  w_sash           TYPE sy-index,
  r_cstm_ctnr      TYPE REF TO cl_gui_custom_container,
  r_easy_splt_ctnr TYPE REF TO cl_gui_easy_splitter_container.

CLASS cl_gui_easy_splitter_container DEFINITION LOAD.

DO 9 TIMES.

  w_sash = sy-index * 10.

  CALL SCREEN 100.

ENDDO.

MODULE pbo OUTPUT.

  IF r_cstm_ctnr IS INITIAL.

    CREATE OBJECT r_cstm_ctnr
         EXPORTING container_name = 'MY_CONTAINER'.

    CREATE OBJECT r_easy_splt_ctnr
           EXPORTING
             parent = r_cstm_ctnr
             orientation =
               cl_gui_easy_splitter_container=&amp;gt;orientation_horizontal.

*   Set starting sash position.  Position is a percentage.

    CALL METHOD r_easy_splt_ctnr-&amp;gt;set_sash_position
           EXPORTING
             sash_position = w_sash.

*   Put ALV in left container.

*    CREATE OBJECT r_alv_grid1
*           EXPORTING
*             i_parent = r_easy_splt_ctnr-&amp;gt;top_left_container.

*   Put ALV in right container.

*    CREATE OBJECT r_alv_grid2
*           EXPORTING
*             i_parent = r_easy_splt_ctnr-&amp;gt;bottom_right_container.

  ELSE.

    CALL METHOD r_easy_splt_ctnr-&amp;gt;set_sash_position
           EXPORTING
             sash_position = w_sash.

  ENDIF.

ENDMODULE.                 " pbo  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jan 2005 00:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866820#M49155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-29T00:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866821#M49156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the demonstration for easy splitter container which I intended to write here but you have already done...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jan 2005 17:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866821#M49156</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-29T17:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866822#M49157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, I would like to thank everybody for their help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally ended up using the splitter container approach - initially I tried to avoid it because I had to change the layout of multiple screens. It looks like this is the (only?) best way to go and since I had to touch all these modules anyway, I put in some additional changes and cosmetics.&lt;/P&gt;&lt;P&gt;One of these moments where one single change request triggers quite a bit of reengineering...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks everybody!&lt;/P&gt;&lt;P&gt;Guenther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2005 21:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866822#M49157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-31T21:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing width of a custom container dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866823#M49158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic piece of code, Charles. Thanks for sharing with us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2005 05:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-width-of-a-custom-container-dynamically/m-p/866823#M49158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-01T05:23:17Z</dc:date>
    </item>
  </channel>
</rss>

