Thanks, I didn't know i could concat using only +. This is the best I can do, which works in order to concat the values.
case(
len({this.props.value}),
0, "Alle",
1, {this.props.value}[0],
2, {this.props.value}[0] + ", " + {this.props.value}[1],
3, {this.props.value}[0] + ", " + {this.props.value}[1] + ", " + {this.props.value}[2],
4, {this.props.value}[0] + ", " + {this.props.value}[1] + ", " + {this.props.value}[2] + ", " + {this.props.value}[3],
5, {this.props.value}[0] + ", " + {this.props.value}[1] + ", " + {this.props.value}[2] + ", " + {this.props.value}[3] + ", " + {this.props.value}[4],
6, {this.props.value}[0] + ", " + {this.props.value}[1] + ", " + {this.props.value}[2] + ", " + {this.props.value}[3] + ", " + {this.props.value}[4] + ", " + {this.props.value}[5],
7, {this.props.value}[0] + ", " + {this.props.value}[1] + ", " + {this.props.value}[2] + ", " + {this.props.value}[3] + ", " + {this.props.value}[4] + ", " + {this.props.value}[5] + ", " + {this.props.value}[6],
8, {this.props.value}[0] + ", " + {this.props.value}[1] + ", " + {this.props.value}[2] + ", " + {this.props.value}[3] + ", " + {this.props.value}[4] + ", " + {this.props.value}[5] + ", " + {this.props.value}[6] + ", " + {this.props.value}[7],
"Alle"
)
Problem is that even if i can write a string of names seperated by commas, the problem returns when i want to edit the table. When I click on a row, all editable cell values gets filled back into the dropdown, which don't support a string.... Hoping anyone can help me make this possible
Maybe this must be done on the MySQL side? Maybe write all names into different columns, then concating all into 1 column when displaying the table? This was a tricky one