12-03-2007 4:54 AM
Hi Experts,
I wanted to add one more field in table control (i.e. one more column).
How I can add the desired field??
12-03-2007 4:58 AM
Hi
JUST CHECK THE LINKS BELOW
How do I hide a column in a table control at runtime? 1. define group name(s) for the columns to be hidden
2. Add the following code...
(define)
controls tbl_ctrl type tableview ...
wa like tbl_ctrl-cols.
loop at tbl_ctrl-cols into wa.
if wa-screen-group1 = <group defined for the column>
wa-invisible = 1.
modify tbl_ctrl-cols from wa
endif
endloop
How do I change attributes of an item in a screen and in a table control at runtime?
add the following code in PBO
loop at screen.
if screen-name = 'NAME_OF_FIELD_HERE_IN_CAPS'.
set attributes of screen such as REQUIRED, INPUT, OUTPUT, INTENSIFIED, INVISIBLE, ACTIVE, DISPLAY_3D, VALUE_HELP to 1(ON) or 0(OFF)
e.g. screen-output = 1.
modify screen.
endif.
endloop
if the field is part of a table control, put the above code within the the loop...endloop of the table control in PBO
You can add a coloumn to table control by simply dragging i/o field to the table control and set the name for it.For header u have to drag label box on to the top of that coloumn.
if u find useful award some points
12-03-2007 6:23 AM
Hi,
please check this , it may help you out.
Select the desired field name from the dictionary/program fields button or press f6.
you can choose the field name and then just drag and drop the filed name in the desired column of the tablecontrol.then give header by using a text field..
Rgards,
Soumya