Hi All,
with some awesome help I got below code working but I made the mistake to use the table selected row which off course will not work if I want all rows to get their unique data.
var category = [];
for (i=0;i<table1.selectedRow.data.bol_categories.length;i++){
category.push(table1.selectedRow.data.bol_categories[i].name)
}
return category.join(",")
In general what is the correct / best way to loop through a query or table? For somebody who is a JS dummy. I always seem to get stuck by the objects and understanding how to go through them one by one