Searchable for models/relationships with different database connections

I have a model with a connection to another database, when it appears in the list table it doesn't have a problem, but when the fields of the model are given searchable parameters an error occurs, it seems the error is because the search query is not connected to another database. is there a solution for this?
No description
No description
6 Replies
EL REKT
EL REKTOP7mo ago
fyi, m_partner comes from a different database
Dennis Koch
Dennis Koch7mo ago
I don’t think that can work. Relations can be loaded afterwards from a different db. But for search it needs to look into multiple columns at once.
EL REKT
EL REKTOP7mo ago
Is there any way that might be used to override the table search query?
Dennis Koch
Dennis Koch7mo ago
Sure. You can overwrite the whole query on the list page by overwriting the methods
EL REKT
EL REKTOP7mo ago
what 'method ? applySearchToTableQuery ?
Dennis Koch
Dennis Koch7mo ago
That’s probably the best one.
Want results from more Discord servers?
Add your server