platform icon indicating copy to clipboard operation
platform copied to clipboard

CSV Export from table does not take column selection into account - also PKs are not resolved in the Export

Open pgrill79 opened this issue 1 year ago • 2 comments

I can export an table to a CSV. A filter is taken into account, but

  • the selected columns are not (all columns are exported)
  • also PKs are not resolved in the Export

Table (with Filter an selected columns): image

Export: image

pgrill79 avatar Jun 21 '24 21:06 pgrill79

we are using the default react admin export feature https://marmelab.com/react-admin/List.html#exporter

guess taking the projected columns into account would be possible (asked a question in the RA discord)

not sure about the key issue, since there might be different keys that resolve to the same key (e.g. many persons might be called fisher)

the same applies for the display of dates, images, etc. There are always two underlying use cases:

  1. get the underlying data in a "clean" format
  2. get the data from a display / print angle

aeberhart avatar Jun 22 '24 16:06 aeberhart

opened an issue with react admin: https://github.com/marmelab/react-admin/issues/9986

aeberhart avatar Jul 09 '24 15:07 aeberhart

We decided to stick with the default logic offered by the underlying framework. There are simply too many export options which make it quite complex.

As a workaround, you can create a query that resolves the pks and formats the other options as needed

aeberhart avatar Jul 30 '24 14:07 aeberhart