Copy rows
Copy row values as tab-separated text.
Options
Changes below update the Grid and code immediately.
Determine the selected row's display position in your app. After sorting, it may differ from the source array position.
View code
Sample data included in the code · 6 rows
Usage guide
#Copy several columns from one order into a spreadsheet at once.
Integration steps
- Choose the row
Determine the selected row's display position in your app. After sorting, it may differ from the source array position.
- Call row copy
Call copyRowAt(rowIndex) from a user action such as a button click. The first displayed row has index 0.
- Check the return value and paste
Verify that the return value is true, then paste into a spreadsheet. Each displayed column is placed in a separate cell.
Displayed column values from one row are copied as tab-separated text.
The default workspace has no dedicated row-copy button. Connect the API to an app button or context menu.
Useful terms
- TSV
- Text with columns separated by tab characters.
- rowIndex
- A zero-based row position in the current view.
API reference
#Methods1
| Method / Arguments | Return type | Description |
|---|---|---|
| rowIndex: number | Promise<boolean> | Copy a single row as TSV (visible columns only). |
Explore each feature
Learn when to use each feature and how to configure it. Each guide identifies live examples and features you connect in your app.