F
Filamentβ€’10mo ago
malebestia.

Method Konnco\FilamentImport\Actions\ImportAction::table does not exist

Hello everyone, I need to use the ImportAction inside a RelationManager, unfortunately the following error appears: "Method Konnco\FilamentImport\Actions\ImportAction::table does not exist." advice?
5 Replies
Vp
Vpβ€’10mo ago
Is this plugin?
malebestia.
malebestia.β€’10mo ago
GitHub
GitHub - konnco/filament-import: why import must use a template whe...
why import must use a template when you can import all files dynamically? - GitHub - konnco/filament-import: why import must use a template when you can import all files dynamically?
Imi
Imiβ€’8mo ago
I see this issue doesn't have a solution yet. I want to reopen this, because i have the same issue. My code looks like this: public function table(Table $table): Table { return $table ->query(Company::query()) ->columns([ Tables\Columns\TextColumn::make('name') ->searchable(), Tables\Columns\TextColumn::make('address') ->searchable(), Tables\Columns\TextColumn::make('email') ->searchable(), Tables\Columns\TextColumn::make('city') ->searchable(), ]) ->actions([ Tables\Actions\EditAction::make() ->form( $this->buildForm() ), Tables\Actions\ViewAction::make() ->infolist([ Infolists\Components\TextEntry::make('name'), Infolists\Components\TextEntry::make('address'), Infolists\Components\TextEntry::make('email'), Infolists\Components\TextEntry::make('city'), ]), ]) ->headerActions([ Tables\Actions\CreateAction::make() ->form( $this->buildForm() ), Actions\Tables\ExportAction::make(), ImportAction::make() ->fields([ ImportField::make('name') ->label('Name') ]), ]); } Maybe this import works only for Panel Pages? Or something i do in wrong way. Can anybody help me with an answer please? It's simple πŸ˜ƒ . It works only on Admin Panel if you extend the ListRecords class OR i can use it outside on other Livewire pages?
Dan Harrin
Dan Harrinβ€’8mo ago
looks like its meant to be used in getHeaderActions(), not a table action but you should ask in #import
Imi
Imiβ€’8mo ago
Ok, i will do. Thanks for you answer