ddoddsr
export successful no notification
I am running a bulk action export and the process ends with a promise of a download notification and download link.
The data shows up in
storage/app/public/filament_exports/
But the notification never comes.
The data in the notification table row data:
I get other notifications why not these?3 replies
modifyQueryUsing ->join changes $record->id
Building a Dashboard widget to display Team Notes.
Works except using join or leftJoin changes $record->id from the original query table to the "joined" table.
I want to use the original table id for a link to the record and it changes to the id of the "joined' table .
6 replies
npm run build error, run dev not working
Followed the directions I made a new theme
Followed these steps
Run build does include my custom page and the tailwind class take effect! great.
But I get a warning that does not make sense:
Also npm run dev does NOT effect my custom page changes
Gist of files https://gist.github.com/ddoddsr/f777762adb35c1908546ce98a1d1e3b5
25 replies
summarize calculated fields in footer
How can I add a custom calculation to the footer of a grouped table?
These three columns show up great for each row and the footer group summarize works for the first two.
Just cannot figure out the summarize for the third calculated column...
Trying a custom summarizer:
With this I get an error:
14 replies
Get filter by date, using the table date as the options
Table has a report_week, which is the same for several records, the day the report ran.
I can get a list of distinct values for the options but I cannot see how to adjust the query with that data.
This gives me a set of report weeks to select.
How do I use this in the $query?
16 replies
I want to Display all time in same timezone
We are storing all date time values in UTC but need to display all values in a single timezone. The company runs on EST/EDT for simplicity of operations (for main office).
The config app.timezone is UTC but I want entry and display in EST/EDT.
Every user regardless of local timezone.
DO I just add to every field with and
OR is there a global way to do this?
6 replies
Can I display a relation in Forms like I can in Table?
In my CampaignResource I have a title
In the form a working Select
In the table a working
But this doesn't work in the form... I want to display only. Not allow change at a certain point,
Do I need to use a select and make it read only?
Model
6 replies
Use Enums in modifyQueryUsing for the ListRecord getTabs
I am using Enums in select on the form and in a selec filter but don't get how to use in a getTabs in the ListRecord page of my Resource.
I was using another method and it worked fine but the enum is more sustainable. In this example the Enum 10 is labeled "Running"
the query should be ``` $query->where('status_id', CampaignStatusEnum::Run->value )
the query should be ``` $query->where('status_id', CampaignStatusEnum::Run->value )
4 replies
Use BulkAction's form field in action for each in bulk
Bulk action needs to get a client id to assign to each in the collection
I see how to select a client.
and how to each assign and save().
How to get the client->id from the Select and pass it it to the action?
```Tables\Actions\BulkAction::make('assign_to_client')
->form([
Forms\Components\Select::make('client_id')
->options(Client::pluck('name', 'id')),
])
->action(fn (Collection $records) => $records->each(
function ( $record, $get ) {
//error. Value of type int is not callable
$record->client_id = $get('client_id');
// Hardcoded works
$record->client_id = 9;
$record->save();
}
))
5 replies
Aggregating relationships use two sums and calculate the percentage.
I have two columns working for the Aggregating Relation but I don't see how to use the results in a third column calculation.
How to calc percent using the two above into connected_percent?
6 replies
How to display in a resource table view the summary of the detail in a RelationManager
In a RelationManager on this resource I have stats I gather every week.
I'd like to summarize these stats do some calcs and show in the table view of the original resource.
Is this possible with standard tools
Is this possible with custom tools / views?
Is there a plugin? from the demo I don't think advanced tables does this.
Can anyone point me in the right direction ?
8 replies
table row grouping options
-- Can we cause the first Group to be open and the rest collasped by default? When User opens the table show Newest week detail, past weeks summary.
--- I have the DESC order .
--- I do see ->groupsOnly() which collapses them all
2 replies
V2 to V3 Action with Form adapt to changes
What I am trying to do:
Have an action button in a custom page that displays a form with a select and then calls a function with the result of the select
What I did so far was working in V2, and I tried two more actions, Nted in the code comments
The button show up with
The button show up with
{{ $this->genWallAction }}
in the blade file.
I get the error message: https://flareapp.io/share/47qKp0Bm4 replies