<?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 registerOnSelectCallback not firing in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/390973#M11619</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the information provided on&amp;nbsp;&lt;A title="Handling Visual Selection" href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Visual/Selection.md#managing-selection-selectionmanager" target="_self"&gt;Handling Visual Selection&lt;/A&gt;&amp;nbsp;I did successfully&amp;nbsp;implement cross-selection in my custom Visual using the SelectionBuilder and SelectionManager objects. Since all of the code is working fine I also wanted to implement support for Bookmarks. I added the following line of code to the constructor of the custom Visual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;this.selectionManager.registerOnSelectCallback( () =&amp;gt; {
    console.log("registerOnSelectCallback");
});&lt;/PRE&gt;&lt;P&gt;Next I tried to highlight some data points in my Visual while each time adding a new Bookmark. If I then go back to the Bookmarks&amp;nbsp; it never seems to work as there is no console.log in the output. Also adding a debugger; statement does not cause the debugger to break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything that needs to be done to get Bookmarks working?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 08:21:08 GMT</pubDate>
    <dc:creator>GunterM</dc:creator>
    <dc:date>2018-04-06T08:21:08Z</dc:date>
    <item>
      <title>registerOnSelectCallback not firing</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/390973#M11619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the information provided on&amp;nbsp;&lt;A title="Handling Visual Selection" href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Visual/Selection.md#managing-selection-selectionmanager" target="_self"&gt;Handling Visual Selection&lt;/A&gt;&amp;nbsp;I did successfully&amp;nbsp;implement cross-selection in my custom Visual using the SelectionBuilder and SelectionManager objects. Since all of the code is working fine I also wanted to implement support for Bookmarks. I added the following line of code to the constructor of the custom Visual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;this.selectionManager.registerOnSelectCallback( () =&amp;gt; {
    console.log("registerOnSelectCallback");
});&lt;/PRE&gt;&lt;P&gt;Next I tried to highlight some data points in my Visual while each time adding a new Bookmark. If I then go back to the Bookmarks&amp;nbsp; it never seems to work as there is no console.log in the output. Also adding a debugger; statement does not cause the debugger to break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything that needs to be done to get Bookmarks working?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 08:21:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/390973#M11619</guid>
      <dc:creator>GunterM</dc:creator>
      <dc:date>2018-04-06T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: registerOnSelectCallback not firing</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/391429#M11625</link>
      <description>&lt;P&gt;If you are working with the Developer Visual, this is a known issue that Microsoft says will be fixed in a future version of the Custom Visual SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, I compiled my visual to a package, added it as a custom visual, and finished my bookmark implementation that way.&amp;nbsp; Yes, performing many iterations watching console messages.&amp;nbsp; It's actually not that hard to implement support for bookmarks once you understand how they operate and whether your visual does selection or filtering etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 21:03:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/391429#M11625</guid>
      <dc:creator>ChrisWilliams</dc:creator>
      <dc:date>2018-04-06T21:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: registerOnSelectCallback not firing</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/391431#M11626</link>
      <description>&lt;P&gt;By the way, this is my implementation in the constructor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;constructor(options: VisualConstructorOptions) {
            this.target = options.element;
            this.host = options.host;
            this.selectionManager = options.host.createSelectionManager();      
            this.selectionIds = [];       
            this.currentSelected = [];
            
            this.selectionManager.registerOnSelectCallback((ids: ISelectionId[]) =&amp;gt; {                       
                    this.currentSelected = ids;                    
                }
            );                           
        }&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2018 21:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/391431#M11626</guid>
      <dc:creator>ChrisWilliams</dc:creator>
      <dc:date>2018-04-06T21:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: registerOnSelectCallback not firing</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/1117976#M23857</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Two years have passed. Is there a bug still there?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 13:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/registerOnSelectCallback-not-firing/m-p/1117976#M23857</guid>
      <dc:creator>romanolkhovsky</dc:creator>
      <dc:date>2020-05-25T13:11:58Z</dc:date>
    </item>
  </channel>
</rss>

