Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adjust size docking container

MariaJooRocha
Contributor
0 Likes
961

Hi SDN,

I've a screen with a button (data_area_expand / data_area_collapse), to expand/collpase a text, and a grid in the same screen with a docking container.

I can hide and show the text, but I'd like when the button is pressed the docking container adjust it's size according to the appearance of the text

Can you please help?

Best regards,

Maria João Rocha

.

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
531

Try this way

Once button is press


    call method g_docking_container_1->set_visible
      exporting
        visible           = ' '   " Change the value according to button press
      exceptions
        cntl_error        = 1
        cntl_system_error = 2
        others            = 3.

a®

Read only

MariaJooRocha
Contributor
0 Likes
531

Hi a®s,

I pretend the docking container (with a alv grid) always visible, the text is to hide/display according to he button. I can make that, my problem is to adjust the size of the docking container. When the text is shown the grid mut be smaller, and when the text is hide the grid must occupy all screen area.

Thanks and regards,

Maria João Rocha