F
Filamentβ€’2mo 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β€’2mo 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β€’2mo ago
No description
Matthew
Matthewβ€’2mo 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β€’2mo 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