Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pgrill79 opened this issue Jun 21, 2024 · 3 comments
Assignees

Comments

@pgrill79
Copy link

pgrill79 commented Jun 21, 2024

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

@aeberhart aeberhart self-assigned this Jun 22, 2024
@aeberhart aeberhart added this to the 5.2 milestone Jun 22, 2024
@aeberhart
Copy link
Contributor

aeberhart commented Jun 22, 2024

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
Copy link
Contributor

opened an issue with react admin:
marmelab/react-admin#9986

@aeberhart aeberhart removed this from the 5.2 milestone Jul 9, 2024
@aeberhart
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants