I've followed this tutorial to embed dropdowns in a table. In my case, I've got a multi-selection and a single-selection dropdown. The latter works fine, but for the multi-selection I don't know how to format the query to get the separated individual values for the Referencias column. I've tried wrapping it in [ ]
and leaving it as string with commas with no success.
I got it working by applying the following transform to the query binding which returns data in json. My refs keys contain values separated by commas.
def transform(self, value, quality, timestamp):
for item in value:
if 'refs' in item:
item['refs'] = [ref.strip() for ref in item['refs'].split(',')]
return value