Link to Edit Record from Livewire Filament Table

Hello, I am having an issue with setting url to edit action on my custom Livewire component that includes filament table. My main Product Resource that i have, does not possess EditProduct it is slideOver action. Now i have tried linking like this
->actions([
Action::make('Edit')
->url(
fn($record) => ListProducts::getUrl() . "?tableAction=edit&tableActionRecord={$record->id}",
shouldOpenInNewTab: true)
])
->actions([
Action::make('Edit')
->url(
fn($record) => ListProducts::getUrl() . "?tableAction=edit&tableActionRecord={$record->id}",
shouldOpenInNewTab: true)
])
Like it is via global search when it opens, but that query string get's overriden as soon as page loads, any solution to this?
2 Replies
toeknee
toeknee2w ago
What about adding a listener on the page to open the action? if page contains X call action? see https://github.com/filamentphp/filament/discussions/7007 as a programatic away of calling actions
GitHub
call table action after the previous has run · filamentphp filament...
Hello! When a table action is run, is it possible to automatically call another one? Example: after the admin has assigned the element to himself (table action #1), open it for viewing (custom moda...
Señor Nikola
Señor NikolaOP2w ago
Did not help.

Did you find this page helpful?