I have a database of drawing details (“detail database”) which has a reference field of tags (“tag field”) based on another “tags database”. I have created a dropdown list from the tags database. I want to create a filter based on the selection from the dropdown list which will sort against the tag field in the detail database. I have done the following:
tag = $w(‘#dropdownList’).value;
newFilter = newFilter.contains(‘tags’, tag);
$w(‘#detailDatabase’).setFilter(newFilter);
This works when the tags field is of type Text but not when its a Reference field. I know it has something to do with the fact that the ‘tags’ parameter is an array of string when a Reference type, but I don’t know how to represent it correctly when creating a new filter.
Any ideas?