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

Hide Column in table control

Former Member
0 Likes
1,024

Dear All,

I need to hide some columns of a table control during runtime. I have used the following code:

LOOP AT SCREEN.

if screen-group1 = 'AA'.

screen-active = 0

screen-invisible = 1.

modify screen.

endif.

ENDLOOP.

Thanks and regards,

Atanu

Edited by: Atanu Dey on Jan 4, 2008 1:38 PM

9 REPLIES 9
Read only

Former Member
0 Likes
998

Hi Atanu

Is this not working?

Read only

0 Likes
998

No Shivika, it is not working.

Thanks and regards,

Atanu

Read only

0 Likes
998

Have you assigned the screen-group in the screen attributes also for the column? please check that.

Also instead of using group , you can simple use scree-name = column1 and then screen-invisible = 1.

This should work

Please let me know.

Cheers

shivika

Read only

0 Likes
998

No shivika,

The solution is not still working. I have tried that. When we make screen-invisible = 1, column is not hiding instead ************ is coming as appears in password.

Thanks and regards,

Atanu

Read only

0 Likes
998

Dear All,

The problem is solved. We have to change the property of column of table control, not the screen. There is a property called invisible in tabl1 control - col1 property. You will have to mark for that column as 1.

Thanks and regards,

Atanu

Read only

0 Likes
998

Hi Atanu

I dont think this is a good solution. What if you want to display the colum for some condition. In that case you will have to modify it in the PBO.

What you have done will i think hide the column for all possible scenarios. If that is your requirement then this should solve your problem.

Thanks and Regards

Shivika

Read only

0 Likes
998

Hi...........

Please explain me how we can hide a field in a table control???

using loop at screen it is not possible, bcoz screen-name is not appearing in the screen-name during debugging........

Any other sol???

Thank u....

Read only

Former Member
0 Likes
998

Hi Athanu,

Try the below code.That will solve ur problem.

loop at screen.

if screen-group1 = 'AA'.

screen-input = '0'.

endif.

modify screen.

endloop.

Award points if helpful.

Kiran Kumar.G

Have a Nice Day.

Read only

0 Likes
998

No Kiran,

The solution is not working. I have tried with screen-invisible combination also. But still not working.

Thanks and regards,

Atanu