tjodalv
Problem with Import Action - Import job never completes
I didn't resolve this problem. The solution for now is to remove unique constraint from that field in the database. Also if you have some foreign key constraints that fails during import the job will keep runing forever until you kill the worker and remove the job from the database.
9 replies
Problem with Import Action - Import job never completes
Where should I put try catch exactly? I am using standard ImportAction, I've maped columns like the docs say. The problem was that one of the field had unique constraint and my csv file have record with the value that already exists in the database. But that is not a problem really. The problem is that ImportCsv job keep executing endlessly and never completes of fails. That result millions of records in failed_import_rows table in a few minutes. So the question is why job doesn't fail when the exception is thrown?
9 replies
Problem with Import Action - Import job never completes
thanks for sharing your solution. I did manage to find what was causing import to fail, but still I don't know why the job didn't fail, but instead it kept running over and over again. I had the problem with UniqueConstraint exception.
9 replies
Action inside modal is not working
Just to post an update how I solved this problem. The problem was my misuse of Filament actions.
I've created new Livewire component in which created filament table, just like the documentation says. I've passed my invoice record to the livewire via property.
And in the modal content view I called the livewire component like this:
And finally Action that opens that modal:
12 replies
Action inside modal is not working
Hi Saade, thank you for your help. I've refactored my code like this:
And in the view:
In the view I am renaming the button so it has unique name and assign record to be payment. There is no error, but that delete button is still not working. The record is not deleted in the database when the button is clicked.
12 replies
Action inside modal is not working
As I am using remove payment button inside of the for loop I created a function that constuct DeleteAction button for every row like this, but still doesn't work:
And then in view my loop goes like this:
But that still doesn't work for some reason.
12 replies
Modal in form Resource
The best candidate for what you are trying to achieve would be hint action. Basically on any field you can define hint action that can open the modal with instructions:
More on hint actions here:
https://filamentphp.com/docs/3.x/forms/actions#passing-multiple-hint-actions-to-a-field
5 replies
ViewAction on resource's table listing page
I've manage to find the solution to my problem using
mountUsing()
method on an action by inspecting how ViewAction works in the Filament. This is my solution:
In my form()
method I am calling my custom class UserForm
that define fields for this action and for my UserResource
class.9 replies
ViewAction on resource's table listing page
Oh yes and I also tried to use Filament\Actions\ViewAction instead of Filament\Tables\Actions\ViewAction but that didn't work either. If I use Filament\Tables\Actions\ViewAction, when clicking on, it opens view estimate page (I want to open user linked to estimate) and if I use Filament\Actions\ViewAction then nothing happens when clicking the button.
9 replies