Array column support

Hi

I want to know whether the array column supported in CUBA?
I am thinking that is it possible to aware array data to a token list component?

My situation is that I have a customer entity and it can have multiple categories. the categories only have a name attribute, I am thinking if I can store the names to an array column.

Best Regards.
Gabriel

1 Like

Hi,

i think what you mean is this - right?

In this case, there is already a issue for it. For now you can create a formatter that you will use in your table for a particular column. You can have a look at the example project i created in the feature request from above.

bye
Mario

Hi Gabriel,

The way I would recommend you is to define your custom

 CSVString

data type. So, you will be able to store information tokens in one field of the database and parse it into a list while loading.

You can find an example of custom datatypes here.

Regards,
Aleksey