pluto_grid icon indicating copy to clipboard operation
pluto_grid copied to clipboard

read a map or a list of lists with the table data after filtering anything

Open ldsouza93 opened this issue 3 years ago • 3 comments

hi

Im trying to export an excel file as the current state of the pluto table after filtering some columns. Is it possible to get the current state of the data as a map, or something like that so I can work on it with other things?

ldsouza93 avatar Dec 06 '21 19:12 ldsouza93

The rows and refRows properties of stateManager are lists according to the current state of PlutoGrid. The difference between the two is whether refRows is a reference or not. If both values are filtered, the filtered result is returned. Also, if pagination is performed, the list of the current page is returned, not the entire list.

stateManager.rows - Refers to rows on the current page, not all rows. stateManager.refRows - Refers to rows on the current page, not all rows. stateManager.refRows.originalList - Refers to all rows, whether filtering or paging. stateManager.refRows.filteredList - If it is filtered regardless of whether it is paging or not, it refers to the filtered result rows.

bosskmk avatar Dec 07 '21 00:12 bosskmk

Deployed in version 2.10.0. Contributed by @henry2man.

bosskmk avatar May 10 '22 19:05 bosskmk

@ldsouza93 I think this can be closed now. Current export feature do takes into consideration filtered data and visible columns.

henry2man avatar May 11 '22 05:05 henry2man

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 03 '22 11:10 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 17 '22 11:10 github-actions[bot]