F
Filamentβ€’7d ago
mg

Please take a look at the following and help me to resolve it.

Stack Overflow
Filament Table Text Column action not firing
I have a Filament table widget, in which I do a semi complex query to fetch some grouped data: public function table(Table $table): Table { return $table ->query( $this-&...
4 Replies
mg
mgOPβ€’7d ago
I am good to go when I use just 1 level query, but when I use complex query with related tables, then the actions are not working properly... when I check the network requests, whenever the event is occurred, the close-modal request is being sent.
mg
mgOPβ€’7d ago
No description
Matthew
Matthewβ€’7d ago
Hmm, could be a naming issue. You named the view action 'test'. Can you try 'testAction' or giving it no name at all?
mg
mgOPβ€’7d ago
still same issue
public function scopeProperShorteners(Builder $query): Builder
{
return $query
->leftJoin('shortener_settings', function (JoinClause $join) {
$join
->on('shorteners.id', '=', 'shortener_settings.shortener_id')
->where('shortener_settings.user_id', Auth::user()->id);
})
->select('shorteners.*')
->selectRaw('COUNT(shortener_settings.id) as settings_count')
->groupBy('shorteners.id');
}
public function scopeProperShorteners(Builder $query): Builder
{
return $query
->leftJoin('shortener_settings', function (JoinClause $join) {
$join
->on('shorteners.id', '=', 'shortener_settings.shortener_id')
->where('shortener_settings.user_id', Auth::user()->id);
})
->select('shorteners.*')
->selectRaw('COUNT(shortener_settings.id) as settings_count')
->groupBy('shorteners.id');
}
this is my query for the table any action is not working in the table 😭 I have found issue πŸ˜‰
Want results from more Discord servers?
Add your server