‎2008 Jan 04 8:03 AM
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
‎2008 Jan 04 8:17 AM
‎2008 Jan 04 8:19 AM
‎2008 Jan 04 8:23 AM
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
‎2008 Jan 04 8:35 AM
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
‎2008 Jan 04 8:45 AM
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
‎2008 Jan 04 8:50 AM
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
‎2008 Nov 13 12:17 PM
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....
‎2008 Jan 04 8:19 AM
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.
‎2008 Jan 04 8:27 AM
No Kiran,
The solution is not working. I have tried with screen-invisible combination also. But still not working.
Thanks and regards,
Atanu