What I’m trying to do
Hello,
- I have a main note with these property below:
campo_di_ricerca_TAG: Tag_layer
lista_TAG: layer4
-
Let’s say I have other notes that have this inline field below:
Note1: Tag_layer:: layer4
Note2: Tag_layer:: layer2
Note3: Tag_layer:: layer1
Note4: Tag_layer:: layer3 -
I have this Dataview query:
TABLE Serie, this.campo_di_ricerca_TAG, this.lista_TAG
FROM #input AND "My Inputs"
WHERE contains(row[this.campo_di_ricerca_TAG],string([this.lista_TAG]))
WHERE file.name !="⚡ Query personalizzata"
LIMIT 15
This query work good.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
— Actually my current situation is this:
- I have a main note with these property below:
campo_di_ricerca_TAG: Tag_layer
lista_TAG:
- #layer3
- #layer2
-
In truth in the other notes I have this inline field below:
Note1: Tag_layer:: #layer4
Note2: Tag_layer:: #layer2
Note3: Tag_layer:: #layer1
Note4: Tag_layer:: #layer3 -
There are 2 problems:
- I know that in the property the character “#” is not necessary, but I have a meta-bind code that populate i with “# tags”;
- in the property “lista-TAG” in reality I have a LIST property and not a STRING property.
Than the same Dataview query doesn’t work.
TABLE Serie, this.campo_di_ricerca_TAG, this.lista_TAG
FROM #input AND "My Inputs"
WHERE contains(row[this.campo_di_ricerca_TAG],string([this.lista_TAG]))
WHERE file.name !="⚡ Query personalizzata"
LIMIT 15
Things I have tried
I tried to change the WHERE command and the function CONTAINS but cannot have a good result.
Is there a way to modify the Dataview query code above to work correctly with my real situation ?