Fally
Fally
FFilament
Created by Fally on 1/15/2025 in #❓┊help
Weird issue triggering row actions one after the other
I've managed to fix this by using a combination of url() and action() on the action
Tables\Actions\Action::make('antigroDownload')
->url(function (OrderDetail $record) {
if (count($record->antigro_file_url) === 1) {
return $record->antigro_file_url[0];
}
return null;
}, shouldOpenInNewTab: true)
->label('Descarcă Antigro')
->color('info')
->icon('heroicon-o-link')
->visible(fn (OrderDetail $record): bool => !empty($record->antigro_file_url))
->action(function (OrderDetail $record) {
Notification::make()
->success()
->title('Fișiere generate de Antigro')
->persistent()
->actions(function () use ($record) {
$actions = [];
$count = 1;
foreach ($record->antigro_file_url as $file) {
$actions[] = Action::make('view'.$count)
->label('Fișier '.$count)
->button()
->url($file, shouldOpenInNewTab: true);
$count++;
}
return $actions;
})
->send();
}),
Tables\Actions\Action::make('antigroDownload')
->url(function (OrderDetail $record) {
if (count($record->antigro_file_url) === 1) {
return $record->antigro_file_url[0];
}
return null;
}, shouldOpenInNewTab: true)
->label('Descarcă Antigro')
->color('info')
->icon('heroicon-o-link')
->visible(fn (OrderDetail $record): bool => !empty($record->antigro_file_url))
->action(function (OrderDetail $record) {
Notification::make()
->success()
->title('Fișiere generate de Antigro')
->persistent()
->actions(function () use ($record) {
$actions = [];
$count = 1;
foreach ($record->antigro_file_url as $file) {
$actions[] = Action::make('view'.$count)
->label('Fișier '.$count)
->button()
->url($file, shouldOpenInNewTab: true);
$count++;
}
return $actions;
})
->send();
}),
4 replies
FFilament
Created by Fally on 1/15/2025 in #❓┊help
Weird issue triggering row actions one after the other
I think the main reason is that I redirect the page to a url and the table doesn't get updated. I may have hit a fringe use case for this and not sure if it's classified as a bug.
4 replies
FFilament
Created by Fally on 1/15/2025 in #❓┊help
Weird issue triggering row actions one after the other
Action code:
Tables\Actions\Action::make('antigroDownload')
->label('Descarcă Antigro')
->color('info')
->icon('heroicon-o-link')
->visible(fn (OrderDetail $record): bool => !empty($record->antigro_file_url))
->action(function (OrderDetail $record, array $data) {
if (count($record->antigro_file_url) === 1) {
return redirect()->to($record->antigro_file_url[0]);
}
Notification::make()
->success()
->title('Fișiere generate de Antigro')
->persistent()
->actions(function () use ($record) {
$actions = [];
$count = 1;
foreach ($record->antigro_file_url as $file) {
$actions[] = Action::make('view'.$count)
->label('Fișier '.$count)
->button()
->url($file, shouldOpenInNewTab: true);
$count++;
}
return $actions;
})
->send();
}),
Tables\Actions\Action::make('antigroDownload')
->label('Descarcă Antigro')
->color('info')
->icon('heroicon-o-link')
->visible(fn (OrderDetail $record): bool => !empty($record->antigro_file_url))
->action(function (OrderDetail $record, array $data) {
if (count($record->antigro_file_url) === 1) {
return redirect()->to($record->antigro_file_url[0]);
}
Notification::make()
->success()
->title('Fișiere generate de Antigro')
->persistent()
->actions(function () use ($record) {
$actions = [];
$count = 1;
foreach ($record->antigro_file_url as $file) {
$actions[] = Action::make('view'.$count)
->label('Fișier '.$count)
->button()
->url($file, shouldOpenInNewTab: true);
$count++;
}
return $actions;
})
->send();
}),
4 replies
FFilament
Created by Fally on 11/9/2023 in #❓┊help
How to properly search encrypted columns in table
Sorry, no. I gave up on it
7 replies
FFilament
Created by Fally on 9/20/2024 in #❓┊help
Help with opening modal in Page
Ok, apparently I solved it myself. Didn't add my scripts inside @script @endscript tag.
3 replies
FFilament
Created by Rolland on 3/8/2024 in #❓┊help
Unable to find component
Really helped me too, thanks
6 replies
FFilament
Created by Fally on 5/23/2024 in #❓┊help
Problem with dashboard loading all the widgets even those not defined in the panel provider
but i think i used them in resources not in custom pages
6 replies
FFilament
Created by Fally on 5/23/2024 in #❓┊help
Problem with dashboard loading all the widgets even those not defined in the panel provider
I don't remember this being an issue in v2 though
6 replies
FFilament
Created by Fally on 5/23/2024 in #❓┊help
Problem with dashboard loading all the widgets even those not defined in the panel provider
If I comment out that line, dashboard is fine but custom page complains about not finding a view for the widget.
6 replies
FFilament
Created by Fally on 11/9/2023 in #❓┊help
How to properly search encrypted columns in table
I will give it a shot. Thank you!
7 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
So i managed to fix this by setting the product search dropdown to reactive and adding to it afterStateUpdated where I use $set() to set the unit price. For some reason, using $set() inside the Group schema triggers that weird read only problem.
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
If i use reactive on the field as soon as i change anything in it it gets overriden by the $set value. I’ve tried it before
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
im using v2 not v3
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
Sorry but where do i need to use live() ? I can't find any reference in the docs and i tried it on the unit_price form field and the group
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
i'm sorry to tag you in this @Dan Harrin but is there anyway you can help here? I've tried everything, i don't know if this is a bug or not.
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
thanks for your help anyway
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
my point exactly, i even updated to the latest version but this seems like a bug to me
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
it's the initial value as well
27 replies
FFilament
Created by Fally on 9/13/2023 in #❓┊help
Dynamically created form schema setting other field value ignores what user changes as value
on group it doesn't trigger
27 replies