I have a DB with just 3 collections and one of the column is a relational table which has 2 columns: InstituteName and DepartmentName, which references InstituteName and DepartmentName in their proper collections.
Anyhow, I have this codelogic in the dataSet.onReady() function, to filter the specified Insitutenames before the category-grid is load, so that when it is load, its just load with the correct filtered data, but this code here:
let currentInstituteName = local.getItem('instituteName'); //works
let instHasSomeDepts = $w('#InstHasSomeDeptsSet'); //works
instHasSomeDepts.setFilter(wixData.filter().eq('InstituteName', currentInstituteName)); //doesnt work
Pls help, I really cant get around, why it doesnt work :(