Kenneth Sese
Kenneth Sese
FFilament
Created by SokarNox on 10/22/2024 in #❓┊help
Advanced Tables Filter Not Adding Filter
This was already discussed offline earlier today, but since I’m just now seeing this was posted here too I’ll respond here too: The issue you are having is the DateFilter is what I call a “columnFilter” this means you need to use the ->includeColumns() method on your filter. So to break it down: If you want to autogenerate your filters based on your table columns (including ‘created_at’) then all you need is:
AdvancedFilter::make()
->includeColumns() // you are missing this.
AdvancedFilter::make()
->includeColumns() // you are missing this.
If you just want the DateFilter for created at then you can pass that into the ->includeColumns() method:
AdvancedFilter::make()
->includeColumns([
'created_at'
]);
AdvancedFilter::make()
->includeColumns([
'created_at'
]);
You only need to use the ->filters() method if you want to a) don’t want to autogenerate filters (which also means you can’t use column filters), b) you want to override a column filter, or c) if you want to include a custom filter (ie filter data on your table where you don’t have a column for it) Hope that helps! p.s. please use the advanced-tables channel and feel free to tag me so I get notified.
4 replies
FFilament
Created by S.V Gubadov on 10/12/2024 in #❓┊help
I update my filament 3 project ( composer update ) and after my panel design not working correctly.
Are you using any plugins? Specifically are you using my plugin AdvancedTables? If so please I released a version this afternoon that addresses this. Also be sure to npm run build and php artisan filament:upgrade
9 replies
FFilament
Created by Mark Chaney on 8/24/2024 in #❓┊help
Disable ExportAction Modal?
I just tried on our household export action and it bypassed the modal
10 replies
FFilament
Created by Mark Chaney on 8/24/2024 in #❓┊help
Disable ExportAction Modal?
Try setting ->form() and ->modalHeading() to null
10 replies
FFilament
Created by Cushty on 8/3/2024 in #❓┊help
filament filters show more
Oh you're absolutely right...didn't read closely enough. 👍
12 replies
FFilament
Created by Cushty on 8/3/2024 in #❓┊help
filament filters show more
@Cushty Plug for my own plugin, but the AdvancedFilters of AdvancedTables can basically do this. You can have some default filters show and the rest available under a “Add Filter” button. It can also do other things (like auto-generate filters for you), but for what you need just copy and paste your existing filters to the ->filters() method, define which default filters show up, and you’re done. https://filamentphp.com/plugins/kenneth-sese-advanced-tables#adding-custom-filters
12 replies
FFilament
Created by ddoddsr on 7/21/2024 in #❓┊help
groups([ Group::make not showing first item
Please update to latest version. Was fixed in 3.2.95 https://github.com/filamentphp/filament/pull/13620
4 replies
FFilament
Created by MazeEzam on 2/1/2024 in #❓┊help
Export Action - Lifecycle Hooks
@David | Fortune Validator Should be possible by overriding the handle method of the ExportCsv class as it loops through processing the records:
foreach ($query->find($this->records) as $record) {
try {
$csv->insertOne(($this->exporter)($record));

// your logic here

$successfulRows++;
} catch (Throwable $exception) {
$exceptions[$exception::class] = $exception;
}

$processedRows++;
}
foreach ($query->find($this->records) as $record) {
try {
$csv->insertOne(($this->exporter)($record));

// your logic here

$successfulRows++;
} catch (Throwable $exception) {
$exceptions[$exception::class] = $exception;
}

$processedRows++;
}
Take a look at this link for how to bind and override: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-export-job
13 replies
FFilament
Created by Davide Cariola on 7/6/2024 in #❓┊help
Problem with CreateOptionForm
@Davide Cariola this appears to be the same as this known issue with nested modals and scrolling. https://github.com/filamentphp/filament/issues/10925
4 replies
FFilament
Created by shabxs on 6/5/2024 in #❓┊help
Testing Filter Tabs
@shabxs @sfrigzs you can pass in the name of the tab you want to test:
livewire(ListOrders::class, [
'activeTab' => 'pending',
])
->assertSuccessful()
->assertCanSeeTableRecords($pendingOrders)
livewire(ListOrders::class, [
'activeTab' => 'pending',
])
->assertSuccessful()
->assertCanSeeTableRecords($pendingOrders)
8 replies
FFilament
Created by toeknee on 2/29/2024 in #❓┊help
Table view to PDF?
Hi @nowak not quite, but almost. Sorry for the delay
11 replies
FFilament
Created by sven on 4/11/2024 in #❓┊help
How are Plugin Activations counted?
Hi @sven Thanks for your interest. The amount of developers working on your project doesn’t count against your activations. So as long as you are using the plugin for just one (non-SaSS) project, a single license will work for you, no matter the number of developers that are working on that project. When you want to use the plugin across multiple projects or a SaSS type application is when you would need an unlimited or lifetime license. Hope that helps and as @Vp pointed out please feel free to ask more questions in the #kenneth-sese-advanced-tables channel and tag me so I get notified. Thanks!
5 replies
FFilament
Created by toeknee on 2/29/2024 in #❓┊help
Table view to PDF?
Yup still WIP...fully working but needs the configurability to make it a good plugin...got busy with work that I haven't been able to finish it and release unfortunately. soon hopefully
11 replies
FFilament
Created by JJSanders on 2/7/2024 in #❓┊help
Redis seems to not pickup imports
@JJSanders Probably related to the update to league CSV, but Dan just pushed a patch. Update to 3.2.26 to see if it fixes it.
7 replies
FFilament
Created by dyo on 12/26/2023 in #❓┊help
Is it possible to have a button for submit filter table
5 replies
FFilament
Created by Abi on 12/27/2023 in #❓┊help
DatePicker not disabling dates outside of min and max dates
17 replies
FFilament
Created by Abi on 12/27/2023 in #❓┊help
DatePicker not disabling dates outside of min and max dates
POC:
Forms\Components\DatePicker::make('poc_date')
->minDate(now()->startOfMonth()->addDay())
->maxDate(now()->endOfMonth()->subDay())
->disabledDates(['2023-12-9', '2023-12-10'])
->native(false),
Forms\Components\DatePicker::make('poc_date')
->minDate(now()->startOfMonth()->addDay())
->maxDate(now()->endOfMonth()->subDay())
->disabledDates(['2023-12-9', '2023-12-10'])
->native(false),
will get you this:
17 replies
FFilament
Created by Abi on 12/27/2023 in #❓┊help
DatePicker not disabling dates outside of min and max dates
(Also, in your original code you are setting minDate twice)
17 replies
FFilament
Created by Abi on 12/27/2023 in #❓┊help
DatePicker not disabling dates outside of min and max dates
You can then use ->disabledDates() along with that if you want to disable weekends, or holidays or something like that
17 replies
FFilament
Created by Abi on 12/27/2023 in #❓┊help
DatePicker not disabling dates outside of min and max dates
Yes, so use your original code but add ->native(false). That’ll disable everything before/after those dates
17 replies