Win Extract Table
Win Extract Table
Section titled “Win Extract Table”Type: win-extract-table · Package: Desktop Activities v1.0.0 · Output: DataTable
Extracts data from a table or grid of a desktop application (.NET DataGrid, Java JTable, ListView…) and converts it into a DataTable. It is much more efficient than reading cell by cell: a single activity brings you the entire table, ready to process or dump into Excel.
How it works
Section titled “How it works”Locate the grid by its selector and read its rows and columns. By default it includes the header row (includeHeader = true) and extracts up to maxRows rows.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The table or grid. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
includeHeader | boolean | Include the header row. By default true. |
maxRows | number | Maximum rows to extract. By default 500. |
timeout | number | Maximum in ms to wait. By default 30000. |
Output
Section titled “Output”Returns a DataTable with the rows and columns of the grid.
Example
Section titled “Example”Win Extract Table selector = (grilla "Movimientos") → output: movimientosLog message = = "Filas extraídas: " + rowCount(movimientos)
For Each items = = movimientos itemVariable = fila └─ activities: Log message = = str(row["Fecha"]) + " — " + str(row["Value"])Related activities
Section titled “Related activities”- Win Get Text — read a single cell.
- DataTable — filter, sort and summarize the extracted table.