Skip to main content

Function: exportTableData()

exportTableData(page, tableId, options?): Promise<readonly Record<string, string>[]>

Defined in: src/modules/table-filter-sort.ts:256

Exports visible table data as an array of objects keyed by column header text.

Parameters​

page​

TableFilterSortPage

Playwright Page (or compatible subset).

tableId​

string

The UI5 control ID.

options?​

TableExportOptions

Export options (columns to include, etc.).

Returns​

Promise<readonly Record<string, string>[]>

Array of row objects keyed by column header text.

Remarks​

This does NOT create a file export; it reads cell values as JSON objects.

Example​

const data = await exportTableData(page, 'myTable');
// [{ Name: 'Alice', Status: 'Active' }, ...]