Application Development 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: 

How to hide Custom container/control in module pool?

0 Kudos

Hi everyone...

I am working on module pool in which i have to populate some tab according to checkbox selected(this part is completed)  and each tab i have to show record using alv.

show i created custom control in each tab screen. but when i am hiding the tab still alv is visible, so how i will hide this screen.

i attached 2 pics(t1.jpg, t2.jpg) which will give u an idea.

t1.jpg --  when checkbox is selected and tabs are dispalyed

t2.jpg -- when i unchecked all chekbox and tabs are unvisible but ALV (whis is inside the custom container) is still visible.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

I hope you have created three subscreen for different tabs , say 100 for tabstrip screen.when checkbox selects it will open respective subscreens(tabs) withinn subscreen tabs  you have used alv display.

if its checked tabstrip is displayed,if not it wont display tabstrip Bcz you have used condition to call screen 100  but at the end grid display happening.

Might be your not checking Checked data(CHECKBOX) while  displaying alv grid.

attach your code,,,so that we can help you.

Regards.

Lingaraj.

8 REPLIES 8

Former Member
0 Kudos

HI Jyotirmaya,

I thought you wrote the code for a custom container outside in the condition you can write the code based on the condition like

if C1= 'X'.

Custom container

Endif.

Like that i am not sure please try like above and let me know if its not working...

Venkat_Sesha
Advisor
Advisor
0 Kudos

In thePBO Where you will have Set_table_for_first_display.

Put a condition like this

If Checkbox1 is not Initial or Checkbox2 is not Initial or Checkbox3 is not Initial.

If G_Grid is intial.

Create object for Grid and container and then Set table for display.

else.

refresh table display.

endif.

endif.

hope this helps

0 Kudos

how to refresh table dispaly, pls need the code bit confuse !!!!

container1 TYPE REF TO   cl_gui_custom_container,

grid           TYPE REF TO   cl_gui_alv_grid,

Former Member
0 Kudos

hi,

I hope you have created three subscreen for different tabs , say 100 for tabstrip screen.when checkbox selects it will open respective subscreens(tabs) withinn subscreen tabs  you have used alv display.

if its checked tabstrip is displayed,if not it wont display tabstrip Bcz you have used condition to call screen 100  but at the end grid display happening.

Might be your not checking Checked data(CHECKBOX) while  displaying alv grid.

attach your code,,,so that we can help you.

Regards.

Lingaraj.

0 Kudos

yes i checking the condition

if chkbox = 'X'.

Create object for Grid and container and then Set table for display.

else

??????

endif.

what should i write in place of ???? show that container will hide.

thanks!!

0 Kudos

in the ??? Place use the below methods.

* Refresh the Table Display
     
CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY.

* Leave Containter

CALL METHOD G_CONT->FREE( ).
     
Clear G_GRID.

Hope This solves

0 Kudos

i got answer to my problem with help from expert especially Venkat.

thanks guys.

i closing this thread.

0 Kudos

This message was moderated.