<?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: VisualUpdate doesn't fire in custom visual when switching from reading to edit mode in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2231941#M33380</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/182601"&gt;@Master_T&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think this function is working as expected. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;When you enter editor mode, power bi only needs to loop current report contents and set them editable. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For these parts of operations, power bi did not require to consider to keep/reset current changes so power bi hasn't reloaded and reset the report content and changes. (the update function not triggered)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;When you try to exit the edit mode, power bi needs to confirm if you keep or reject these changes. (both two choices will invoke the update features)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 07:21:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-10T07:21:15Z</dc:date>
    <item>
      <title>VisualUpdate doesn't fire in custom visual when switching from reading to edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2223213#M33315</link>
      <description>&lt;P&gt;I'm developing a custom visual where I need to detect if the report is in reading view or edit view, since I want to show a different button depending on the current View Mode.&lt;/P&gt;&lt;P&gt;According to the documentation, when the view mode changes the visual's update() method should get called, with the value of the options.type parameter set to&amp;nbsp;&lt;SPAN&gt;powerbi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;VisualUpdateType&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ViewMode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, from my tests this only happens when switching from edit to view mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When switching from view to edit mode, the update() method is not called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Is this a bug in the PowerBI service/api? How do I solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's a snippet of the update() method of my visual for reference:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;public update(options: VisualUpdateOptions) {
	if (powerbi.VisualUpdateType.ViewMode === (options.type &amp;amp; powerbi.VisualUpdateType.ViewMode) ) {
		//we never get here when switching from reading view to edit view 
		//it only works when switching from edit view to reading view
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:32:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2223213#M33315</guid>
      <dc:creator>Master_T</dc:creator>
      <dc:date>2021-12-06T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: VisualUpdate doesn't fire in custom visual when switching from reading to edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2223643#M33318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/182601"&gt;@Master_T&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's difficult to determine if it's a bug, or where it's just a requirement that has never come up. I'm trying to temember if it ever did this, as I may have experimented with this idea in the past, but I can't be sure.&lt;/P&gt;
&lt;P&gt;Either way, it sounds like it would be useful to have, particularly if it works the other way. I'd suggest &lt;A href="https://github.com/microsoft/PowerBI-visuals-tools/issues" target="_self"&gt;creating an issue&lt;/A&gt; so the team can be aware it's soemthing you're looking for.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 19:13:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2223643#M33318</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-12-06T19:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: VisualUpdate doesn't fire in custom visual when switching from reading to edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2224774#M33332</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;, I've opened an issue here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-tools/issues/401" target="_blank"&gt;https://github.com/microsoft/PowerBI-visuals-tools/issues/401&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 08:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2224774#M33332</guid>
      <dc:creator>Master_T</dc:creator>
      <dc:date>2021-12-07T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: VisualUpdate doesn't fire in custom visual when switching from reading to edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2231941#M33380</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/182601"&gt;@Master_T&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think this function is working as expected. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;When you enter editor mode, power bi only needs to loop current report contents and set them editable. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For these parts of operations, power bi did not require to consider to keep/reset current changes so power bi hasn't reloaded and reset the report content and changes. (the update function not triggered)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;When you try to exit the edit mode, power bi needs to confirm if you keep or reject these changes. (both two choices will invoke the update features)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 07:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2231941#M33380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T07:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: VisualUpdate doesn't fire in custom visual when switching from reading to edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2238089#M33439</link>
      <description>&lt;P&gt;That's all well and good... but what if I want to show a slighlty different UI depending on whether the visual is in reading or edit view? I want to show an extra button in my visual if I am in edit mode, but if it is "working as intended" there is no way to detect if I'm entering edito mode... not a very smart implementation if that is the case, in my opinion.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 13:47:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2238089#M33439</guid>
      <dc:creator>Master_T</dc:creator>
      <dc:date>2021-12-14T13:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: VisualUpdate doesn't fire in custom visual when switching from reading to edit mode</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2246827#M33545</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/182601"&gt;@Master_T&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Perhaps you can submit an idea for improving this update function and feature usage to help achieve your requirement.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;Microsoft Power BI ideas&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 06:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VisualUpdate-doesn-t-fire-in-custom-visual-when-switching-from/m-p/2246827#M33545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T06:20:46Z</dc:date>
    </item>
  </channel>
</rss>

