BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Grid export. Not working as expected ? #63

Open betterapp opened 1 year ago

betterapp commented 1 year ago

I have such DataPort configured: image

When I try find this Grid Export DataPort on list here: image

I do not get this DataPort on list.

image

Why ?

Second question. When I run this dataport manually using Start complete Export it only export 20 records. When I open grid related with this dataport there are 172897 Items.

Am I doing something wrong ?

betterapp commented 1 year ago

any update ?

BlackbitDevs commented 1 year ago

Actually the grid export (item "Data Director" in the "CSV export" button dropdown) works a bit differently: it shows the export dataports for dataports with source data type Pimcore objects. And then uses the result callback function and result document action of the selected dataport to generate the response document for the elements which have been selected / filtered in the grid. Which grid configuration you choose does not matter here.

The other dropdown items of the "CSV export" button (like "CSV (Data Director)", "XML (Data Director)", "JSON (Data Director)" are more what you want I think. Those export the currently visible columns from the grid. So in this case you could load the grid configuration "Export for display" and then click one of the buttons to export the shown data (of course filters and selection gets applied) to the selected target format.