2010 Jul 08 1:33 PM
Hi guys,
I have a tableview control, created with screenpainter. I am able to fill it in my code but i would like to change some lines status to "non-editable".
I tried with LOOP AT SCREEN ..... ENDLOOP. -> I have access to rows but not lines.
I tried to loop at the table name ( name in screen painter, not the itab name corresponding), in the PROCESS BEFORE OUTPUT or PROCESS AFTER INPUT but i have the following error : +TAB_WERKS is not a database table. +
Any idea?
Thanks, Olivier.
Hi guys,
I have a tableview control, created with screenpainter. I am able to fill it in my code but i would like to change some lines status to "non-editable".
I tried with LOOP AT SCREEN ..... ENDLOOP. -> I have access to rows but not lines.
I tried to loop at the table name ( name in screen painter, not the itab name corresponding), in the PROCESS BEFORE OUTPUT or PROCESS AFTER INPUT but i have the following error : +TAB_WERKS is not a database table. +
Any idea?
Thanks, Olivier.
2010 Jul 09 6:47 AM
in the PBO, use:
LOOP ... "any variant of loop on table control lines
MODULE xxx.
ENDLOOP.
Define the module xxx:
MODULE xxx OUTPUT.
LOOP AT SCREEN.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
Note 1: that's not possible to make the whole line non-editable in one statement.
Note 2: you may also simply declare all the I/O fields of the table control "output only"