Table

Element which gets reference to UI component Table.

Properties:

Element which gets reference to UI component Table.

Properties:

  • Control ID: [String] Control ID

  • Control: [LTools.SAP.Model.SAPUIItem] Control reference

  • Table: [LTools.SAP.Model.SAPUIGrid] Variable that stores table reference

  • Full read: Full table data read including checkboxes, color etc.

  • Variable: [LTools.SAP.Model.SAPUIGrid] Variable to store table reference

  • Cells: [List<List<LTools.SAP.Model.SAPUIGridCell>>] Cell values

  • Columns: [List<LTools.SAP.Model.SAPUIGridColumn>] Table columns info

  • Selected rows: [List<int>] Selected rows indexes

  • Selected cells: [Dictionary<int, string>] Selected cells array

  • Select rows: [List<int>] Rows indexs to select

  • Select cells: [List<string>] Cells aray to select

  • Click: [Dictionary<int, string>] Cell click

  • Double click: [Dictionary<int, string>] Cell double click

  • Toolbar button: [String] Click toolbar button by ID

  • Time-out*: [Int32] Maximum waiting time for process completion (ms)

LTools.SAP.Model.SAPUIGrid:

  • [SAPFEWSELib.ISapGridViewTarget] Element - Element reference;

  • [String] Id - Element ID;

  • [List<LTools.SAP.Model.SAPUIGridColumn>] Columns - Columns;

  • [List<List<LTools.SAP.Model.SAPUIGridCell>>] Cells - Cells;

  • [List<int>] SelectedRows - Selected rows indexes;

  • [Dictionary<int, string>] SelectedCells - Selected cells. Index, Column key;

  • SelectCells(List cells - strings formatted "Row index, Column key" ("1, NAME")) - Select cells;

  • SelectRows(List rows - row indexes) - Select rows;

  • SetCurrentCell(int row - row index, string column - column key) - Select current cell;

  • ClickCell(int row - row index, string column - column key) - Performs cell click;

  • DoubleClickCell(int row - row index, string column - column key) - Performs cell double click;

  • PressToolbarButton(string id - button ID) - Performs click on table toolbar button.

LTools.SAP.Model.SAPUIGridColumn:

  • [String] Key - Column key;

  • [String] Text - Column text.

LTools.SAP.Model.SAPUIGridCell:

  • [int] Row - Row index;

  • [String] Column - Column key;

  • [String] Text - Cell text;

  • [bool] IsChecked - Is cell checkbox checked;

  • [int?] Color - Cell color;

  • [int?] ListIndex - Selected item index.

C#
LTools.SAP.SapApp app = LTools.SAP.SapApp.Init(wf);
LTools.SAP.Model.SAPUIGrid tbl = app.Table("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
tbl.SelectRows(new List<int>() { 1 });

Python
app = LTools.SAP.SapApp.Init(wf)
tbl = app.Table("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell")
tbl.SelectRows(List[int]([ 1 ]))

JavaScript
var host = new _lib.Microsoft.ClearScript.HostFunctions();
var app = _lib.LTools.SAP.SapApp.Init(wf);		
var tbl = app.Table("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
var idx = host.newObj(_lib.System.Collections.Generic.List(_lib.System.Int32));
idx.Add(1);
tbl.SelectRows(idx);

Last updated