Exporter - dynamic generated columns
Hello All,
i have an Exporter Class that extends "Exporter":
Example BookExporter:
Normlally we just Define Columns in the Exporter …
Now, my Problem is, when exporting the Authors - i would like to have for each Author an Extra Column, no matter how many Authors are present.
For Example:
Book 1 -> Author1, Author2, Author3
Book 2 -> Author2, Author4, Author5, Author7
Book 2 -> Author5, Author8, Author15, Author23, ….
i would like to create an Output like this (Column Names):
BookId, Book..., Book..., Author1, Author2, Author3, AuthorN,...
i think it´s totally possible to achieve this inside the getColumns() Method.
when creating columns with an foreach loop, i need to get the current record without beeing in an Exportcolumn,
Can someone help?
thanks in advance
BR
i have an Exporter Class that extends "Exporter":
Example BookExporter:
- We would like to Export Books
- a Book can have Multiple Authors
Normlally we just Define Columns in the Exporter …
Now, my Problem is, when exporting the Authors - i would like to have for each Author an Extra Column, no matter how many Authors are present.
For Example:
Book 1 -> Author1, Author2, Author3
Book 2 -> Author2, Author4, Author5, Author7
Book 2 -> Author5, Author8, Author15, Author23, ….
i would like to create an Output like this (Column Names):
BookId, Book..., Book..., Author1, Author2, Author3, AuthorN,...
i think it´s totally possible to achieve this inside the getColumns() Method.
when creating columns with an foreach loop, i need to get the current record without beeing in an Exportcolumn,
Can someone help?
thanks in advance
BR