‎2008 Mar 06 12:47 PM
Can i change Attribute of table control programmatically like input = 0 or 1??
If yes then give me code???
Can i make one row of table control As input when user press button???
Its Urgent..
‎2008 Mar 06 12:57 PM
hi,
You can display or enter single structured lines of data using a table control.
Features:
Resizable table for displaying and editing data
The user or program can change the column width and position, save the changes, and reload them later
Check column for marking lines - marked lines are highlighted in a different color
Line selection: Single lines, multiple lines, all lines, and deselection
Column headings double as pushbuttons for marking columns
Scrollbars for horizontal and vertical scrolling
You can fix any number of key (leading) columns
Cell attributes are variable at runtime
The table control contains a series of attributes that are controlled entirely at the presentation server.
These are:
Horizontal scrolling using the scrollbar in the table control
Swapping columns
Changing column widths
Selecting columns
Selecting lines
The PAI processing block is triggered when you scroll vertically in the table control or save the user
configuration.
You can reset a table control to its initial attributes at any time using the statement REFRESH
CONTROL <ctrl> FROM SCREEN <scr>. <scr> does not have to be the same as the initial screen of
the table control.
The table control attributes, saved at runtime in the structure that you declared in the CONTROLS
statement, can be divided into general attributes and column attributes.
The general attributes contain information about the properties of the entire table control, such as the
number of fixed columns, and so on.
The column attributes are saved in an internal table (one entry for each column). Each column consists
of the attributes from the structure SCREEN, along with the column position, selection indicator, visibility
indicator, and visible width of the column.
You can change a table control dynamically by modifying the contents of the fields in the table control
structure declared in your program.
The fields of the table control structure also provide information about user interaction with the table
control. For example, you can use the selected field to determine whether the user has selected a
particular column.
Permanent changes: You can carry out changes to the table
control structure at any point in the program flow.
Temporary changes: You must carry out changes between
LOOP and ENDLOOP in the flow logic of the subscreen container.
To change the attributes of individual cells temporarily, change the table SCREEN in a PBO module
that you process between LOOP and ENDLOOP in the flow logic (LOOP AT SCREEN, MODIFY
SCREEN).
In the LOOP, the runtime system initializes the attributes set statically for the table control in the Screen
Painter. You can only change these in a module called from a LOOP through the table control.
MODULE change_table_control_2 ...
LOOP AT my_control-cols INTO wa.
IF wa-index BETWEEN 1 AND 3.
wa-screen-intensified = 1.
ELSE.
wa-screen-intensified = 0.
ENDIF.
MODIFY my_control-cols FROM wa.
ENDLOOP.
ENDMODULE.
Hope this helps, Do reward.