glennski
(Glenn Atherton)
January 30, 2018, 9:03am
1
Hi guys,
I'm struggling with the filtration side of things. I can't get the most basic of filtering to work.
A filter might look like this:
function(itemData){
var dir = GetUrlKeyValue("dir");
return dir==itemData["directorate"];
}
but I get an error like this:
If I change the root ID or remove it I still get an error just it refers to a different Root ID.
I have also made the filter more basic with hard coded values etc.
Version is 2.3.11
Any help would be ace.
Glenn
glennski
(Glenn Atherton)
January 30, 2018, 9:12am
2
Right, I have made progress of sorts. The filter seems to work but only if the Root ID falls withing the filtered group.
Can the Root ID be set at run-time?
antonkhrit
(Anton Khritonenkov)
January 30, 2018, 9:42am
3
Hi @glennski ,
Thank you for your question.
Yes, you can do it. Just open the "Custom JavaScript" step in the configuration wizard and type something like this:
renderer.config.RootNodeId = "accountname@yourdomain.onmicrosoft.com";
glennski
(Glenn Atherton)
January 30, 2018, 11:16am
4
Just what I wanted thankyou.
1 Like