ExcelExport return empty document #18

Closed
opened 2022-06-26 13:38:28 +00:00 by aestrada2796 · 4 comments
aestrada2796 commented 2022-06-26 13:38:28 +00:00 (Migrated from github.com)

ExportAction::make()->exports([
ExcelExport::make()
->askForFilename()
->askForWriterType()
])

ExportAction::make()->exports([ ExcelExport::make() ->askForFilename() ->askForWriterType() ])
pxlrbt commented 2022-06-26 13:39:34 +00:00 (Migrated from github.com)

Are you using the table header action? And are you on version 1.0.1?

Are you using the table header action? And are you on version 1.0.1?
ArtMin96 commented 2022-07-11 15:09:31 +00:00 (Migrated from github.com)

Same here:

LYz2G4Y

->headerActions([
    ExportAction::make()
        ->label(__('base.buttons.export'))
        ->exports([
            ExcelExport::make()
                ->label(__('actions/table.export'))
                ->askForFilename()
                ->askForWriterType()
                ->withFilename(fn ($filename) => now() . '-' . $filename)
        ]),
    ]);
Same here: ![LYz2G4Y](https://user-images.githubusercontent.com/29732308/178297116-73753b27-9572-49b4-96fd-835ac0f5371d.png) ```php ->headerActions([ ExportAction::make() ->label(__('base.buttons.export')) ->exports([ ExcelExport::make() ->label(__('actions/table.export')) ->askForFilename() ->askForWriterType() ->withFilename(fn ($filename) => now() . '-' . $filename) ]), ]); ```
ArtMin96 commented 2022-07-11 15:41:19 +00:00 (Migrated from github.com)

->fromTable() fixed the problem.
Is it normal that we must call ->fromTable() to export?

Is there any option to export tags with commas? The tag column does not export.

```->fromTable()``` fixed the problem. Is it normal that we must call ```->fromTable()``` to export? Is there any option to export tags with commas? The tag column does not export.
pxlrbt commented 2022-08-02 15:58:22 +00:00 (Migrated from github.com)

Is it normal that we must call ->fromTable() to export?

Yes. You need to define which fields you want to export 😅 The default action has this set, but you overwrote it.

Is there any option to export tags with commas? The tag column does not export

There is an open PR that needs some refinement. Then this should work.

> Is it normal that we must call ->fromTable() to export? Yes. You need to define which fields you want to export 😅 The default action has this set, but you overwrote it. > Is there any option to export tags with commas? The tag column does not export There is an open PR that needs some refinement. Then this should work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-excel#18
No description provided.