vinubabu323 / strapi-plugin-excel-export

Strapi plugin to export excel
MIT License
8 stars 10 forks source link

Cannot Render and Download Multiple Fields From Relations in a Collection #17

Open LemurSage opened 2 months ago

LemurSage commented 2 months ago

Code

config/excel.ts

export default () => ({ config: { "api::form-submission.form-submission": { columns: [ "companyRUT", "fullName", "email", "phone", "RUT", "fleetSize", "companyName", "vehicleCount", "ChargingPlanName", ], relation: { vehicleId: { column: ["vehicleName", "brand", "modelYear", "price"], }, creditPlanId: { column: [ "planName", "bankName", "downPayment", "paymentTerm", "interest", "installment", ], }, }, }, }, });

Output from the Excel Export tab for the relevant Relations is as follows.

image

Only the first column from the related collections is visible and available for download.

Expected Behavior

All fields from the related collections are visible

Output Obtained

Only the first column from the related collection is available for view and download.

bennyhoyer commented 2 months ago

this would be fixed with https://github.com/vinubabu323/strapi-plugin-excel-export/pull/16