pxlrbt / filament-excel

Excel Export for Filament Admin Resources
MIT License
355 stars 68 forks source link

Disable column ordering and concatenation #106

Closed daar closed 1 year ago

daar commented 1 year ago

For some reports, the order in which columns are exported is important as the data is imported or used in other systems. The current exported does re-order the defined columns in the export which is not desirable. Additionally, multiple columns with the same database field are concatenated to one column only. Both is undesirable behavior.

pxlrbt commented 1 year ago

The current exported does re-order the defined columns in the export which is not desirable

What do you mean? If you use ->fromTable() they should be in the order you defined them on your table. If you use ->withColumns() you should be able to define your order.

Additionally, multiple columns with the same database field are concatenated to one column only

Haven't though about that case at all. Your best bet is to use ->withColumns() instead of ->fromTable()

pxlrbt commented 1 year ago

Closing this due to inactivity.