<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom Visual Filtering in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10511#M48</link>
    <description>&lt;P&gt;I have created a custom visual based on a table of data e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Id | Name&lt;/P&gt;&lt;P&gt;1 | Task 1&lt;/P&gt;&lt;P&gt;1 | Task 2&lt;/P&gt;&lt;P&gt;2 | Task 1&lt;/P&gt;&lt;P&gt;2 | Task 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I filter in the report view e.g. Test Id = 1 I cannot find a way to get my code to adapt. It always shows the full list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code looks something like this (called from update method)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;public&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;static&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; converter(dataView: &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DataView&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;TestRunViewModel&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; table = dataView.table;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;for&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; t = 0; t &amp;lt; table.rows.length; t++) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; cell = table.rows[t];&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;// table rows are not filtered&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2015 20:49:14 GMT</pubDate>
    <dc:creator>alanwales</dc:creator>
    <dc:date>2015-11-19T20:49:14Z</dc:date>
    <item>
      <title>Custom Visual Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10511#M48</link>
      <description>&lt;P&gt;I have created a custom visual based on a table of data e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Id | Name&lt;/P&gt;&lt;P&gt;1 | Task 1&lt;/P&gt;&lt;P&gt;1 | Task 2&lt;/P&gt;&lt;P&gt;2 | Task 1&lt;/P&gt;&lt;P&gt;2 | Task 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I filter in the report view e.g. Test Id = 1 I cannot find a way to get my code to adapt. It always shows the full list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code looks something like this (called from update method)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;public&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;static&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; converter(dataView: &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DataView&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;TestRunViewModel&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; table = dataView.table;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;for&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; t = 0; t &amp;lt; table.rows.length; t++) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; cell = table.rows[t];&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;// table rows are not filtered&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 20:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10511#M48</guid>
      <dc:creator>alanwales</dc:creator>
      <dc:date>2015-11-19T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10644#M49</link>
      <description>&lt;P&gt;Anyone have any knowledge of how the custom visuals can be filtered in ts code...?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 08:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10644#M49</guid>
      <dc:creator>alanwales</dc:creator>
      <dc:date>2015-11-23T08:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10691#M50</link>
      <description>&lt;P&gt;I managed to find the issue, the child nodes had to be cleared on update e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private elementRoot: HTMLElement;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public init(options: VisualInitOptions): void {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.elementRoot = options.element.get(0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public update(options: VisualUpdateOptions) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while (this.elementRoot.firstChild) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.elementRoot.removeChild(this.elementRoot.firstChild);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;... etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding calls to console.info helped to track down that the data update was not the issue&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 16:34:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Filtering/m-p/10691#M50</guid>
      <dc:creator>alanwales</dc:creator>
      <dc:date>2015-11-23T16:34:53Z</dc:date>
    </item>
  </channel>
</rss>

