© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
2 replies
Ye Thi Ha Htwe

Table action modal not showing up for some records

Hi everyone! As the title says, I have this table in a Resource's custom page.
    public function table(Table $table): Table
    {
        return $table
            ->query($this->getTableQuery())
            ->columns([
                TableComponents::itemNameColumn()->searchable(),
                // other columns
            ])
            ->actions([
                TableActions::batchOutAction(),
                Action::make('test')->action(fn(Model $record) => dd($record)),
            ]);
    }
    public function getTableQuery()
    {
        return TableQueries::outgoingQuery();
    }
    public function table(Table $table): Table
    {
        return $table
            ->query($this->getTableQuery())
            ->columns([
                TableComponents::itemNameColumn()->searchable(),
                // other columns
            ])
            ->actions([
                TableActions::batchOutAction(),
                Action::make('test')->action(fn(Model $record) => dd($record)),
            ]);
    }
    public function getTableQuery()
    {
        return TableQueries::outgoingQuery();
    }

The is the
TableQueries::outgoingQuery()
TableQueries::outgoingQuery()
.
public static function outgoingQuery()
    {
        return Transaction::query()
            ->selectRaw('min(id) as id, item_id, category_id, subcategory_id, exp_date, batch, donor_id, project_id, SUM(amount) as amount, warehouse_id')
            ->groupBy('item_id', 'category_id', 'subcategory_id', 'exp_date', 'batch', 'donor_id', 'project_id', 'warehouse_id')
            ->havingRaw('SUM(amount) > 0');
    }
public static function outgoingQuery()
    {
        return Transaction::query()
            ->selectRaw('min(id) as id, item_id, category_id, subcategory_id, exp_date, batch, donor_id, project_id, SUM(amount) as amount, warehouse_id')
            ->groupBy('item_id', 'category_id', 'subcategory_id', 'exp_date', 'batch', 'donor_id', 'project_id', 'warehouse_id')
            ->havingRaw('SUM(amount) > 0');
    }
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Table action modal not showing up on 1st click
FilamentFFilament / ❓┊help
3y ago
table action not showing
FilamentFFilament / ❓┊help
12mo ago
Action modal is not showing
FilamentFFilament / ❓┊help
2y ago
View action modal not showing when using table widget.
FilamentFFilament / ❓┊help
6mo ago