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
Is this plugin?
the plugin in question is
https://github.com/konnco/filament-import
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?
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?
looks like its meant to be used in getHeaderActions(), not a table action
but you should ask in #import
Ok, i will do. Thanks for you answer
@Dan Harrin
i'm using it in relation manager and got the same error, is there anyway to fix use it in relation manager ?