Read all values from a field with commas in a table

Hello, I will like to read all the values from a field with commas in my table Products. For example, I have a product that has 2 categories: Fruits and Healthy, I want that the field is shown as “Fruits, Healty” but instead is showing a single value “Fruits080YGHealthy”. Can someone help me please? :pray:

info.AddField(“First Name”, “first_name”, db.Varchar).FieldHide()
info.AddField(“Last Name”, “last_name”, db.Varchar).FieldHide()

// 不存的字段列
info.AddField(“Full Name”, “full_name”, db.Varchar).FieldDisplay(func(model types.FieldModel) interface{} {
return model.Row[“first_name”].(string) + " " + model.Row[“last_name”].(string)

1 Like

Thank you very much for your response. I think I didn’t express myself well. I have the following product:
“id”: 4,
“name”: “string”,
“product_categories”: [
“id”: 1,
“name”: “Snacks”,
“id”: 2,
“name”: “Gluten Free”,
I want that in my table in the field “Category Name” shows “Snacks , Gluten Free” (all product categories separated with commas), but instead is showing the following (
“Snacks6cDrivera3tbVGluten Free”):

Look at this example



1 Like

I truly appreciate your help, thank you very much! :raised_hands: