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

switch off/on ( Docking container ) help experts

Former Member
0 Likes
1,475

Hello experts

I need your help i have main screen on the left side there is navigation area ( Docking container ) i added 2 buttons in

in main screen tool-bar which I can switch /on and other button to switch off the navigation area ( Docking container ), I didnt start with logic yet and i want the button to show ' off ' only when navigation area is showing and 'ON' when the navigation area isn't showing :

should I use the following METHOD?

WHEN 'ON'

????

WHEN 'OFF'

CALL METHOD container ->free

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
815

Hi,

you need to call method "set_visible" of cl_gui_docking_container.

Ex:

For visible:

CALL METHOD container->set_visible

EXPORTING

visible = 'X'

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

OTHERS = 3.

For invisible pass exporting parameter as ' '.

Read only

Former Member
0 Likes
815

I found the solution and its workin fine :

logic :

STATICS:

sf_visible TYPE seu_bool VALUE cl_gui_control=>visible_true.

*

CHECK NOT L_DOCKING IS INITIAL.

*

IF sf_visible = cl_gui_control=>visible_false.

  • show list

CALL METHOD L_DOCKING->set_visible

EXPORTING

visible = cl_gui_control=>visible_true.

CALL METHOD cl_gui_container=>resize.

ELSE.

  • hide list

CALL METHOD L_DOCKING->set_visible

EXPORTING

visible = cl_gui_control=>visible_false.

sf_visible = cl_gui_control=>visible_false.

ENDIF.

Read only

Former Member
0 Likes
815

Hi,

visible:

CALL METHOD container->set_visible

EXPORTING

visible = 'X' -


> for visible pass 'X'

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

OTHERS = 3.

Invisible:

CALL METHOD container->set_visible

EXPORTING

visible = ' ' -


> For invisible pass space ' '

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

OTHERS = 3.

Thanks,

rajeshvadde