pxlrbt/filament-excel

Disable column ordering and concatenation

daar opened this issue · 2 comments

daar commented

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

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

Closing this due to inactivity.