Matthew
How to know when a record had been displayed
Evening all,
I've got a 'has seen' to populate when a table row is displayed, (Messages table basically, want to record when message has been displayed)
Looked into all the 'hooks' I can find. Haven't seen anything that allows me to call a function on a table render etc.
Got no idea where to start on this...gratefully receive suggestions!
10 replies
breezy still breathing?
Anyone know if Filament Breezy is being retired.
There are a few a months worth of PR's outstanding.
No issue if it is the case, as no-one is being paid, and we've all got too much work!
Just wanted to plan ahead, especially considering any defunct plugins might have challenges when v4 comes.
1 replies
addaction - refresh repeater
If I use
->addaction
to customise the addition of a repeater, how do I make it so that repeater refreshes with the latest data.
At the moment, the data is going into the database, but I have to close the form down and re-open to see the new entry.9 replies
Validate on suffixAction
I've got a form that is mostly visual, and only a couple of editing points, and doesn't have a general submit.
I thought I could be clever where I wanted a field to be editable in that view, by having a suffix Action acting as a save button for that field.
Works fine, but there is no validation run. Is there a command I can have within the action to run the field validation prior to the save?
Cheers
5 replies
Actions on modal infolists largely unavailable?
Have I got this right...?
Doing anything on an infolist, that is in a modal format, means that you cannot have any actions that require forms or confirmations, becuase the modals cannot be nested?
Or am I missing something?
I'm looking at putting a 'record notes' feature onto resource rows. My first thought was an infolist with repeateable entries...but unless it into its own view page (clunky)...I can't see how I would have the option to add a new note, or other actions such as setting\clearing alerts etc
2 replies
Launch one table action from the createAction
Hi,
Can anyone help point me in the right direction of launching a table action from the completion of a CreateAction.
Dependent on the outocome of the entry, and the specifics of the data entered, I would like it to write the row, and then launch straight into a table action for that row.
Thanks
7 replies
Animate Notification Badge \ icon
Anyone know\done something like a pulse animation on the badge or icon for the notifications when there are unread notifications?
I can hook into the
.fi-topbar-database-notifications-btn
class to with animate-pulse
, but no idea how to make that conditional on whether unread notifications are > 011 replies
Relation Info on same page as Resource
Often I will want to put a list of resource records, and a relation on the same 'view'.
For example, I could have a list of products and then each product hasMany productNotes.
I can make a relationmanager for productNotes, and then when you view an individual product the relation table is there.
What about if I want just to click between those products as they are on the table, see the notes, without having to go in and out of each record?
Interested to hear how anyone approaches this ?
Thanks
6 replies
Filtering a Select Box
Has anyone successfully introduced functionality whereby they can filter a select box ?
For example, if I have a an employees table and a document table, and I have a form that adds document records for employees...
I'll have a select box that allows me to select the employee(s), but what if i wanted to enable the users to filter that list down, such as maybe all the employees with a certain grade etc ?
I realise there are other ways to achieve something similar, like starting with the employees table and having bulk add...
But wondered if anyone else had tried this approach ?
11 replies
Using rules on data not inside the form
Evening,
I've want to make a field unique, but only within a subset. For example, if I am adding a Tag name, but I want that unique within a Type, but other Types could have the same name.
I don't record the Type on the form, I add that to the DB using the
->mutateFormDataUsing
method.
So how do I make something like
Not that you can get $data in the unique()
method, but cdt_type
definitely not in $get4 replies
Create Action using different forms
Anybody got any suggestions on how to go about using a different form dependent on the type of record being added.
I've got a table which holds different types of records, with a load of options that get stored in a Json format as a single column.
Could therefore do with a different 'form' for each option.
I can bring up an initial modal with a type select, but not sure how to advance that into a createAction with a dynamic form choice based upon the initial selection.
Tried this:
But it doesn't fire a new modal.
2 replies
getTabs() and limiting CreateAction options
Is it possible to determine which getTabs() option is enabled when launching an Action ?
I want to split a table by getTabs() to various sections, and would like the CreateAction Header to respect that 'filter'
4 replies
Global filter...how to refresh on change though.
I want a kind of global filter. Users are allocated locations, and their resources can be filtered by locations.
I want to give users the functionality to select one or more of their permitted locations, and then for all their resources to be filtered accordingly.
So far I have worked out how to:
1) Create the filter select in the header
2) Persist this throughout the session, across the panels
3) Apply the relevant global scopes dynamically to filter everything
I am only missing one thing...which is when the select items are altered...it needs some sort of page refresh or change of resource to take effect.
How can I make it reload everything on change ?
5 replies
Breezy & Filament::getTenant()
I have several pages sitting outside the panel, which I don't want to have to re-write from scratch as they are complicated, and we've got more urgent tasks.
We had them workign an integrating fine, using the auth and even multi-tenancy.
However, after installing Breezy, the
Filament::getTenant()
function, for pages outside of the panel is returning null
Assume its got something to do with the auth changes, but not sure where to start with this !
Anyone seen anything similar or got any suggestions ?2 replies
create button on wizard in modal, hide until end
I see some documentation on when a create wizard is used within a create page, about how to render the submit button on the last step.
I can't find anything about when the wizard is within a modal\slideover.
Is it possible to hide the create button until the end ?
7 replies