morty
Struggling on the simplest thing :( - How do I make a table row clickable to a modal view page?
I have a resource with a modal view page. That works fine. However, I can't seem to figure out how to make the clickable table row open this modal instead of the edit page. Can someone help please?
8 replies
Regression in v3.2.67 - `foreach() argument must be of type array|object, null given`
I really don't want to create a reproduction repo for a GitHub issue. Is anyone else experiencing this when attaching a related record inside a relation manager using a
belongsToMany
relationship?5 replies
Is it possible to get the current record when using sub-navigation for the badge?
I'm trying to count the related items for the parent record so I can show a navigation badge when using sub-navigation.
Is it possible to get the current record somehow considering this is a static method?
2 replies
How can I refresh the options on a table filter after an action?
I have a select filter on a table called "collection" that filters records if they belong to that collection.
I also have a bulk create action to create a new collection and assign the selected records to the collection.
My problem is that if I create a new collection, I can't immediately filter the table with that new collection unless I hard refresh the page because the filter options haven't been updated. What do I need to do to have the filter update itself?
17 replies
ManageRelatedRecords but don't have record title attribute?
What do you guys do when you don't have a title attribute? These should be unique values right?
For example, I'm managing "notes" on an account resource. The note table is just an id, note, and timestamps.
What should I do here?
2 replies
Is there a way to group options on a select when using a relationship?
It appears that using both
->options()
and ->relationship
doesn't really play well together.
I'm trying to create group options like seen here: https://filamentphp.com/docs/3.x/forms/fields/select#grouping-options
When I do this and try to select an option, I get the following error:
SQLSTATE[42S22]: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid column name 'collections'.When I instead use the relationship method, then the options method doesn't seem to work. My code:
2 replies
Select multiple preloaded options are reordered after selecting the input
I have a select multiple that is formFilled with options already attached on a BelongsToMany relationship. As you can see in the attached gif, the options are visible when the form is shown, but when you click the select input the options are rearranged alphabetically. Is there a way to prevent this or to load the options in already sorted so it doesn't jump on the user?
My code:
I've also tried adding
->orderBy('name')
to the formFill query without success. Any ideas?3 replies
BulkAction too many records, can we chunk these?
I'm running into an issue with a bulk table action. The table has approximately 2500 records but SQL Server has a parameter limit of 2100. Therefore, if I try to run a bulk action on the entire table I get the following error:
SQLSTATE[IMSSP]: Tried to bind parameter number 2101. SQL Server supports a maximum of 2100 parameters.Is it possible to chunk these before being passed into the
action
method?
This is what I mean by the parameter limit:
3 replies