Custom query for table column text
I am storing an array of IDs in a table column
And in the table view I want to show not the IDs stored, but the names of those cars. So, I need to make a query to get records 34, 134, 159 and pluck the name of each of those rows and echo it in the table list view column car_liked.
How to do that?
Currently, I am doing this, but it outputs just the IDs separated by the coma. like
But I would like to have
My code is:
car_liked which is a multiple select input field , e.g. ["34","134","159"].And in the table view I want to show not the IDs stored, but the names of those cars. So, I need to make a query to get records 34, 134, 159 and pluck the name of each of those rows and echo it in the table list view column car_liked.
How to do that?
Currently, I am doing this, but it outputs just the IDs separated by the coma. like
34, 134, 159 But I would like to have
Ford Bronco, VW Golf, Audi Q5 instead. My code is: