GuiTableControl Object
Description
The table control is a standard dynpro element, in contrast to the GuiCtrlGridView, which looks similar. GuiTableControl extends the GuiVContainer Object. The type prefix is tbl, the name is the fieldname taken from the SAP data dictionary.
Methods
|
Method Syntax |
Description |
|---|---|
All methods of the GuiVComponent Object:
|
|
|
All methods of the GuiContainer Object:
|
|
|
All additional methods of the GuiVContainer Object:
|
|
ConfigureLayout
Public Sub ConfigureLayout() |
In the configuration dialog the layout of the table can be changed. This dialog is a GuiModalWindow. |
DeselectAllColumns
Public Sub DeselectAllColumns() |
This function can be used for table controls with a button that allows, to deselect all columns in one step. |
GetAbsoluteRow
Public Function GetAbsoluteRow( _ ByVal Index As Long _ ) As GuiTableRow |
Unlike the rows collection, the indexing supported by this function does not reset the index after scrolling, but counts the rows starting with the first row with respect to the first scroll position. If the selected row is not currently visible then an exception is raised. |
GetCell
Public Function GetCell( _ ByVal Row As Long, _ ByVal Column As Long _ ) As GuiVComponent |
This method returns a given table cell. It is more efficient than accessing a single cell using the rows or columns collections. Syntax Row: Zero-based index of the row.Column: Zero-based index of the column. |
ReorderTable
Public Sub ReorderTable( _
ByVal Permutation As String _
) |
The parameter permutation describes a new ordering of the columns. For example “0 2 1” will move the third column to second position.
|
SelectAllColumns
Public Sub SelectAllColumns() |
This function can be used for table controls with a button that allows, to select all columns in one step. |
Properties
|
Property Syntax |
Description |
|---|---|
All properties of the GuiComponent Object:
|
|
All properties of the GuiVComponent Object:
|
|
|
All properties of the GuiContainer Object:
|
|
CharHeight (Read-only)
Public Property CharHeight As Long |
Height of the GuiTableControl in character metric. |
CharLeft (Read-only)
Public Property CharLeft As Long |
Left coordinate of the GuiTableControl in character metric. |
CharTop (Read-only)
Public Property CharTop As Long |
Top coordinate of the GuiTableControl in character metric. |
CharWidth (Read-only)
Public Property CharWidth As Long |
Width of the GuiTableControl in character metric. |
ColSelectMode (Read-only)
Public Property ColSelectMode As GuiTableSelectionType |
There are three different modes for selecting columns or rows, which are defined in the enumeration type GuiTableSelectionType. |
Columns (Read-only)
Public Property Columns As GuiCollection |
The members of this collection are of GuiTableColumn type. Therefore they do not support properties like id or name. |
CurrentCol (Read-only)
Public Property CurrentCol As Long |
Zero-based index of the current column. |
CurrentRow (Read-only)
Public Property CurrentRow As Long |
Zero-based index of the current row. |
HorizontalScrollbar (Read-only)
Public Property HorizontalScrollbar As GuiScrollbar |
The horizontal scrollbar of the table control. |
RowCount (Read-only)
Public Property RowCount As Long |
Number of rows in the table. This includes invisible rows. For the number of visible rows the property VisibleRowCount is available. |
Rows (Read-only)
Public Property Rows As GuiCollection |
The members of this collection are of GuiTableRow type. Indexing starts with 0 for the first visible row, independent of the current position of the horizontal scrollbar. After scrolling, a different row will have the index 0. |
RowSelectMode (Read-only)
Public Property RowSelectMode As GuiTableSelectionType |
There are three different modes for selecting columns or rows, which are defined in the enumeration type GuiTableSelectionType. |
TableFieldName (Read-only)
Public Property TableFieldName As String |
The name property of the table control contains the ABAP program name in addition to the plain field name. This property contains just the field name. |
VerticalScrollbar (Read-only)
Public Property VerticalScrollbar As GuiScrollbar |
The vertical scrollbar of the table control. |
VisibleRowCount (Read-only)
Public Property VisibleRowCount As Long |
Number of visible rows in the table. For the number of all rows the property RowCount is available. |