In this topic the 'token layer filter' is discussed and its decided to remove it. The intention was about Wiki: getTokens() only, but when this was posted, I realized that (probly) ALL 'getXXXXXTokenXXX()' were changed (like Wiki: getExposedTokens() is for sure). And alas, not all these functions have build in filters.
So here a method to return the 'original' functionality of these functions. I'll use getXXXTokenXXX() as 'substitute' function, just replace that with the one you're using.
Code: Select all
[h:result = json.intersection(getTokenNames("json",'{layer:["TOKEN"]}'), getXXXTokenXXX("json"))]
<!-- and in case you were not using the 'json' delimiter but lets say this one "," -->
[h:result = json.toList(json.intersection(getTokenNames("json",'{layer:["TOKEN"]}'), getXXXTokenXXX("json")),",")]
another thing. Some of these functions have their OWN FILTER, e.g. Wiki: getTokens() you can just add the filter internally, see the examples given in the wiki.
note that this is NOT fully confirmed for ALL getXXXTokenXXX functions, only for getExposedTokens and getTokens, but its a safe assumption.