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

How to hide Custom container/control in module pool?

0 Likes
5,150

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
Read only

Former Member
0 Likes
3,188

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.

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.

8 REPLIES 8
Read only

Former Member
0 Likes
3,188

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...

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,188

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

Read only

0 Likes
3,188

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,

Read only

Former Member
0 Likes
3,189

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.

Read only

0 Likes
3,188

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!!

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,188

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

Read only

0 Likes
3,188

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

thanks guys.

i closing this thread.

Read only

0 Likes
3,188

This message was moderated.