_Lietze
Fill Select on relationmanager creation form
How can i pre-fill parent relation selector on a create form on a relationmananger?
On the Practice View, i have a Patient relationmanager, and when i create a new patient on that page, i want to have already selected the practice, but i'm not sure how I can implement that.
I tried using afterStateHydrated, but I'm not sure which injections i need to get to get the ID of the practice of which page I'm on right now.
3 replies
Column 'name' in where clause is ambiguous
I have quite an extensive admin-panel with lots of columns and custom filters/queries.
This works fine for most options, but when I try to search for things (and sometimes with sorting but that's an issue for later), I get the error as mentioned in the title.
This is most likely caused by the fact that I have two tables with the column 'name': Patients and Practices, which makes SQL unsure about in what table to look for.
Part of the Laravel SQL error:
My columns are defined as followed:
What could be a good way to solve this problem? Thanks in advance!
2 replies
How to find the current query of the list page?
I have this page where i get 2236 results by default, but when i tinker with Model::count() i get 150 more results than my resource list.. to debug this i would like to see the query built to show the results, so i can figure out what i did wrong
5 replies
filter form - reset filter A when filter B is some value
I'm trying to reset a filter when another filter is set to a specific value.
so when
has_lab_report
is set back to false
or show all
, the results
filter should be invisible again (which happens), but the filter is still active with the previously selected options (positive/negative etc)
How can i reset the results
filter when has_lab_reports
is not Yes
?
3 replies
Relationmanager for other items from same user
I have a payment and user model. On the payment page i would like to show all the other payments from that same user, is this possible? And if so, what would be the simplest way to achieve this?
so basically a relationmanager for payment.user.payments
10 replies