F
Filamentβ€’14mo 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?
6 Replies
Vp
Vpβ€’14mo ago
Is this plugin?
malebestia.
malebestia.OPβ€’14mo 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β€’12mo 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β€’12mo ago
looks like its meant to be used in getHeaderActions(), not a table action but you should ask in #import
Imi
Imiβ€’12mo ago
Ok, i will do. Thanks for you answer
Haydra
Haydraβ€’3w ago
@Dan Harrin i'm using it in relation manager and got the same error, is there anyway to fix use it in relation manager ?
Want results from more Discord servers?
Add your server