Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportAction for Filament\Tables\Actions\Action #30

Open
4inka opened this issue Sep 23, 2022 · 12 comments
Open

ImportAction for Filament\Tables\Actions\Action #30

4inka opened this issue Sep 23, 2022 · 12 comments
Labels
enhancement New feature or request

Comments

@4inka
Copy link

4inka commented Sep 23, 2022

I have a resource that has a relation manager associated, and I would like to be able to import data to the relation but when I add the import action it gives me an error saying Method Konnco\FilamentImport\Actions\ImportAction::table does not exist..

After investigating I noticed that the ImportAction extends Filament\Pages\Actions\Action and to be able to add an action to a tables headerActions param it has to extend Filament\Tables\Actions\Action. Could it be possible to create another ImportAction that extends the tables class so it can be usable inside relations and other places that can only be extended from Filament\Tables\Actions\Action?

@frankyso frankyso added the enhancement New feature or request label Sep 23, 2022
@frankyso frankyso changed the title Method Konnco\FilamentImport\Actions\ImportAction::table does not exist. ImportAction for Filament\Tables\Actions\Action Sep 23, 2022
@arjendejong12
Copy link

This would be so good to have, as I'm not using Filament resources, only forms and tables. If I change the mentioned extend to Filament\Tables\Actions\Action, the import button shows up, else I get the same error @4inka has.

@tonypartridger
Copy link

This is really needed and extends the functionality massively to all filamentphp.

@tomnewman86
Copy link

Was there a reliable workaround to this issue?

I too am getting the Method Konnco\FilamentImport\Actions\ImportAction::table does not exist when trying to use this plugin with filament/tables only, in the getTableHeaderActions() function

Thanks

@tonypartridge
Copy link

Not at present, it's only supported on the Resource level.

@pathros
Copy link

pathros commented Mar 24, 2023

How to implement the import inside a relation manager ??? Because I got the following error (when implemented inside the ->headerActions([]) method of the RelationManager)

public static function table(Table $table): Table{
    return $table
        ->headerActions([
             ImportAction::make()
    ,]);

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

@tonypartridge
Copy link

It needs to add individual support for table actions I believe whereas it's built for resources at the moment

@ayatamine
Copy link

hi, is there any new updates for this, i have the same issue. thanks

@sprklinginfo
Copy link

+1, any update?

@jhoanborges
Copy link

+1

@momostafa
Copy link

much needed +1

@tonypartridge
Copy link

much needed +1

this is possible with the native Filament Importer

@momostafa
Copy link

much needed +1

this is possible with the native Filament Importer

Yes but I find this plugin more useful than the native thanks to the developer and the contributors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests