#Relation Info on same page as Resource

5 messages · Page 1 of 1 (latest)

dense fossil
#

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

celest whaleBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

golden sage
#

I typically do a custom table action with an Infolist to show some details of a resource that doesn't warrant going to the actual view/edit page of that resource...something like this:

Tables\Actions\Action::make('quickview')
  ->slideOver()
  ->infolist([
    // TextEntry::make('xxx')
])

🤔

dense fossil
#

That is a nice way of providing more information...but...I'm looking at instances of related records, particulary those with a potential hasMany ?

golden sage