<?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 Re: Visuals interactions in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1620321#M27472</link>
    <description>&lt;P&gt;Hi friend, ty for response!&lt;BR /&gt;&lt;BR /&gt;I finally found that:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://jorgecandeias.github.io/2017/09/11/adding-interactions-to-your-power-bi-custom-visual/" target="_blank"&gt;https://jorgecandeias.github.io/2017/09/11/adding-interactions-to-your-power-bi-custom-visual/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;+&lt;BR /&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/master/src/barChart.ts" target="_blank"&gt;https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/master/src/barChart.ts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And, more or less, begin to understand how work the selection : )&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 09:15:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-25T09:15:37Z</dc:date>
    <item>
      <title>Visuals interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1618141#M27444</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I need to create a visual that knows when the same category has been selected in another visual. But I am lost : (&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="interactions.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/438706i6B015A486B723D44/image-size/large?v=v2&amp;amp;px=999" role="button" title="interactions.png" alt="interactions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to follow this tutorial.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/es-es/power-bi/developer/visuals/selection-api#select-datapoints-to-slice-other-visuals" target="_self"&gt;https://docs.microsoft.com/es-es/power-bi/developer/visuals/selection-api#select-datapoints-to-slice-other-visuals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know if the information is updated and completed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. First problem&lt;/P&gt;&lt;P&gt;According to the tutorial:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;private host: IVisualHost;
private selectionManager: ISelectionManager;

constructor(options: VisualConstructorOptions) {
        this.host = options.host;
        // ...
        this.selectionManager = this.host.createSelectionManager();
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I try:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
import IVisualHost = powerbi.extensibility.IVisualHost;
import ISelectionManager = powerbi.extensibility.ISelectionManager;
...

 constructor(options: VisualConstructorOptions) {

    this.host = options.host;
    this.selectionManager = this.host.createSelectionManager();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, tslinter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Property 'createSelectionManager' does not exist on type 'IVisualHost'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, in the update&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    const selection: ISelectionId = this.host.createSelectionIdBuilder()
            .withTable(options.dataViews[0].table, 1)
            .createSelectionId();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Property 'createSelectionIdBuilder' does not exist on type 'IVisualHost'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Please, does anyone know any updated reference where it is explained how to interrelate visuals (&lt;STRONG&gt;table mode&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;Ty in advance&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 11:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1618141#M27444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-23T11:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Visuals interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1619088#M27454</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Sorry to hear you're having trouble. However, please try to post more complete code, as it is difficult to reproduce your issue if we don't have the complete picture and can only guess at how we can help.&lt;/P&gt;
&lt;P&gt;It is difficult to be 100% certain this is the correct solution, but I'll go with my gut. I'm pretty sure that you might not have added the class properties from the tutorial you have quoted.&lt;/P&gt;
&lt;P&gt;From your code snippet, it looks like you've imported the references for &lt;FONT face="courier new,courier"&gt;IVisualHost&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;ISelectionManager&lt;/FONT&gt;, but you need to make class properties for &lt;FONT face="courier new,courier"&gt;host&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;selectionManager&lt;/FONT&gt;, otherwise you cannot use them in either the &lt;FONT face="courier new,courier"&gt;constructor&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; methods, and this is likely why the TS compiler is getting upset.&lt;/P&gt;
&lt;P&gt;Please ensure that you add the following between the &lt;FONT face="courier new,courier"&gt;class&lt;/FONT&gt; declaration and the &lt;FONT face="courier new,courier"&gt;constructor&lt;/FONT&gt; method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;private host: IVisualHost;
private selectionManager: ISelectionManager;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way, your properties should be visible to the class's internal methods and you can assign/utilise them as needed. [&lt;A href="https://www.typescriptlang.org/docs/handbook/classes.html#public-private-and-protected-modifiers" target="_self"&gt;Further reading]&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Again, it's hard to confirm completely without further context, but your approach to selection ID generation after this looks like it might be okay.&lt;/P&gt;
&lt;P&gt;If you do have all this set up correctly, please post your full code somewhere - ideally as a repo or Gist on GitHub or somewhere similar - and we can take a more detailed look. Please include any other relevant details such as your capabilities and settings files. If you can't share your whole project, please create a minimal visual that reproduces the issue and we can focus on those areas and get you up and running.&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 19:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1619088#M27454</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-01-24T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Visuals interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1620321#M27472</link>
      <description>&lt;P&gt;Hi friend, ty for response!&lt;BR /&gt;&lt;BR /&gt;I finally found that:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://jorgecandeias.github.io/2017/09/11/adding-interactions-to-your-power-bi-custom-visual/" target="_blank"&gt;https://jorgecandeias.github.io/2017/09/11/adding-interactions-to-your-power-bi-custom-visual/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;+&lt;BR /&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/master/src/barChart.ts" target="_blank"&gt;https://github.com/microsoft/PowerBI-visuals-sampleBarChart/blob/master/src/barChart.ts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And, more or less, begin to understand how work the selection : )&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 09:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1620321#M27472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-25T09:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Visuals interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1685432#M28050</link>
      <description>&lt;P&gt;Hi all I'm trying to add interactions for my custom visual , But I'm facing some issues in my visual.ts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used R script to create my custom visual table,To add interactions in visual.ts i'm facing issues with these statements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;private&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;host&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IVisualHost&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;private&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;selectionManager&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ISelectionManager&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cannot find name 'IVisualHost'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'selectionManager' is declared but its value is never read&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;len&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Math&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;category&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/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sp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;/SPAN&gt;&lt;SPAN&gt;createSelectionId&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In this loop I'm facing a lot of issues,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Feb 2021 06:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visuals-interactions/m-p/1685432#M28050</guid>
      <dc:creator>krish_24</dc:creator>
      <dc:date>2021-02-24T06:00:22Z</dc:date>
    </item>
  </channel>
</rss>

