Show TOC Entering content frame

Component documentation Table Control Locate the document in its SAP Library structure

Integration

The Table Control screen element is mapped onto the Web Dynpro UI element Table, which contains a set of TableColumn elements. The TableColumn consists of a caption for the column header and a Web Dynpro UI element that was obtained by transforming a non-container screen element.

 

Table Control Mapping Rules

Table Property

Bound to Context

Value

AccessibilityDescription

 

INITIAL

DataSource

Node TABLE_DATA

The data for the cells in the table control

Design

 

Constant Standard

Enabled

 

Constant True

FirstVisibleRow

Attribute TC_TOP_LINE
(default
0)

First visible line in table control

FirstActualRow

Attribute TC_TOP_LINE
(default
0)

First visible line in table control

FooterVisible

Attribute FOOTER_VISIBLE

If true, the table footer with the paging arrows is visible.

ReadOnly

 

Constant False

RowCount

 

Constant -1

SelectionMode

 

Constant None
Note: The selection mode for the table control (
Selectability attribute for rows) is mapped by inserting a special DynproTableColumn that contains checkboxes with ID MARK for the selection markers.

Tooltip

 

INITIAL

Visible

Attribute VISIBLE
(default
visible/2)

Element runtime attribute Active

VisibleRowCount

Attribute TC_LINES

Number of visible lines in the table control. Set at runtime using the LINES attribute of the table control structure.

Width

 

INITIAL

 

TableColumn Mapping Rules

TableColumn Property

Bound to Context Attribute

Value

Design

 

Constant Standard

FilterValue

 

INITIAL

HAlign

 

Constant Auto

Resizable

 

Constant True

Selected

COLUMN_SELECTED

True, if the column for table control is selected. Set at runtime using the SELECTED attribute of the COLS table, which is part of the table control structure.

Visible

COLUMN_VISIBLE

True, if the column is to be visible. Set at runtime using the VISIBLE attribute of the COLS table, which is part of the table control structure.

Width

WIDTH

Width of the column (in character grids). Set at runtime using the SCREEN_LENGTH attribute of the COLS table, which is part of the table control structure.

 

Context Structure

This graphic is explained in the accompanying text

Context Structure of the Table

The context node for a table control (marked with 1 in the figure above) contains the following elements:

·        A node with cardinality 0:n for the table data (2 in above image), which is used as the data source for the Table UI element.

·        The subnodes of the table data node (3 in above figure) contain the data for the table cells. The structure of these nodes is element-specific and corresponds to the context structure of the non-container screen elements. If a row selection attribute is set, a node with the name of the corresponding ABAP variable is created. It stores the data for the selection column.

·        Nodes for the table columns (4 in above figure). These nodes contain the context attributes used for binding TableColumn properties as described above.

 

 

Leaving content frame