<?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 Objects Migration &amp;amp; Report Page Tooltip Properties in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/637517#M18703</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just looking at updating one of my custom visuals to allow the use of report page tooltips, and while I can get this working just fine, I've realised that I need to fix my existing &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu functionality in order to unify the behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, my Tooltip menu is defined using an object named &lt;FONT face="courier new,courier"&gt;tooltip&lt;/FONT&gt;. As a result, when I add in the report page tooltip functionality, I get two Tooltip menus in the properties pane, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/0e2de6ebf2607282dcdbbcf5f926bca194ae350d/68747470733a2f2f692e696d6775722e636f6d2f334b7a4777754e2e706e67" border="0" alt="" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through some investigation, I've found that the standard &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu is internally named &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt;, and if I define my object and &lt;FONT face="courier new,courier"&gt;VisualSettings&lt;/FONT&gt; accordingly, I get a single &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu as expected&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has given me a few challenges to rexolve and I'd be really grateful if anyone has any ideas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Now that I've changed my object name, and existing &lt;FONT face="courier new,courier"&gt;metadata.objects.tooltip&lt;/FONT&gt; property settings in a user's report are no longer applied and would need to be re-pointed to &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt;. I'd like to try and do this without the user losing their existing properties. I had thought about using &lt;FONT face="courier new,courier"&gt;persistObjectProperties&lt;/FONT&gt; in the &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; method by grabbing existing &lt;FONT face="courier new,courier"&gt;tooltip&lt;/FONT&gt; properties and merging them into &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt;, but they seem to be lost before I get to this point. Is there a recommended approach for migrations of this kind, or do I need to treat this is a breaking change?&lt;/LI&gt;&lt;LI&gt;The report page properties, &lt;STRONG&gt;Type&lt;/STRONG&gt; and &lt;STRONG&gt;Page&lt;/STRONG&gt;, are placed at the bottom of the merged &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu. is it possible to reposition them by declaring them in my capabilities/settings.ts or extending an existing class? I'd ideally like them to be positioned at the top and the framework seems to prioritise my custom properties over the in-built ones.&lt;/LI&gt;&lt;LI&gt;Is it possible to get access to the values of the&amp;nbsp;&lt;STRONG&gt;Type&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Page&lt;/STRONG&gt; properties? They do not seem to be available when I inspect in &lt;FONT face="courier new,courier"&gt;enumerateObjectInstances&lt;/FONT&gt;. This is primarily to allow me to manage the show/hide of my custom properties if the user opts not to show the tooltip page and use the previous tooltip functionality.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 05 Mar 2019 19:36:23 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2019-03-05T19:36:23Z</dc:date>
    <item>
      <title>Custom Visual Objects Migration &amp; Report Page Tooltip Properties</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/637517#M18703</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just looking at updating one of my custom visuals to allow the use of report page tooltips, and while I can get this working just fine, I've realised that I need to fix my existing &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu functionality in order to unify the behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, my Tooltip menu is defined using an object named &lt;FONT face="courier new,courier"&gt;tooltip&lt;/FONT&gt;. As a result, when I add in the report page tooltip functionality, I get two Tooltip menus in the properties pane, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/0e2de6ebf2607282dcdbbcf5f926bca194ae350d/68747470733a2f2f692e696d6775722e636f6d2f334b7a4777754e2e706e67" border="0" alt="" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through some investigation, I've found that the standard &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu is internally named &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt;, and if I define my object and &lt;FONT face="courier new,courier"&gt;VisualSettings&lt;/FONT&gt; accordingly, I get a single &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu as expected&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has given me a few challenges to rexolve and I'd be really grateful if anyone has any ideas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Now that I've changed my object name, and existing &lt;FONT face="courier new,courier"&gt;metadata.objects.tooltip&lt;/FONT&gt; property settings in a user's report are no longer applied and would need to be re-pointed to &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt;. I'd like to try and do this without the user losing their existing properties. I had thought about using &lt;FONT face="courier new,courier"&gt;persistObjectProperties&lt;/FONT&gt; in the &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; method by grabbing existing &lt;FONT face="courier new,courier"&gt;tooltip&lt;/FONT&gt; properties and merging them into &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt;, but they seem to be lost before I get to this point. Is there a recommended approach for migrations of this kind, or do I need to treat this is a breaking change?&lt;/LI&gt;&lt;LI&gt;The report page properties, &lt;STRONG&gt;Type&lt;/STRONG&gt; and &lt;STRONG&gt;Page&lt;/STRONG&gt;, are placed at the bottom of the merged &lt;STRONG&gt;Tooltip&lt;/STRONG&gt; menu. is it possible to reposition them by declaring them in my capabilities/settings.ts or extending an existing class? I'd ideally like them to be positioned at the top and the framework seems to prioritise my custom properties over the in-built ones.&lt;/LI&gt;&lt;LI&gt;Is it possible to get access to the values of the&amp;nbsp;&lt;STRONG&gt;Type&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Page&lt;/STRONG&gt; properties? They do not seem to be available when I inspect in &lt;FONT face="courier new,courier"&gt;enumerateObjectInstances&lt;/FONT&gt;. This is primarily to allow me to manage the show/hide of my custom properties if the user opts not to show the tooltip page and use the previous tooltip functionality.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 05 Mar 2019 19:36:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/637517#M18703</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-03-05T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Objects Migration &amp; Report Page Tooltip Properties</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/637902#M18707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The predefined properties can't be controlled&amp;nbsp;from Custom Visuals. That means you can not change order and you can not get their values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To keep backward compatibility you should &lt;STRONG&gt;keep&lt;/STRONG&gt; both &lt;STRONG&gt;tooltip&lt;/STRONG&gt; and &lt;STRONG&gt;visualTooltip&lt;/STRONG&gt; in the capabilities.json. It's required to get &lt;STRONG&gt;tooltip&lt;/STRONG&gt; options in legacy reports.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EnumerateObjectInstances should return an empty array for the&amp;nbsp;&lt;STRONG&gt;tooltip&lt;/STRONG&gt; to hide it in Format Panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a third step, you should update Settings parse to check visualTooltip first. It's defined you should ignore values from the&amp;nbsp;tooltip. Otherwise, you should copy tooltip to visualTooltip in your Settings parser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:08:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/637902#M18707</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-03-06T07:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Objects Migration &amp; Report Page Tooltip Properties</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/638726#M18719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;, and thanks once again for the prompt response and detailed reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works great, but just a little bit stuck on step #3 of your solution - I can swap out the &lt;FONT face="courier new,courier"&gt;dataView&lt;/FONT&gt; when parsing settings but this is passive and I can't get it to persist into the visual settings. This means that when I upgrade the visual, all settings are preserved (properties pane looks correct etc.), but when I make a change, it will switch to the defaults and then apply the one I just changed, throwing away the previous values. I suspect that this is just how I'm working with the &lt;FONT face="courier new,courier"&gt;dataView&lt;/FONT&gt; and my understanding of its persistence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I'm currently doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;private static parseSettings(dataView: DataView): VisualSettings {

    /** #57: Migrate the old `tooltip` into `visualTooltip`, if required */
        if (    dataView.metadata
            &amp;amp;&amp;amp;  dataView.metadata.objects
            &amp;amp;&amp;amp;  dataView.metadata.objects.tooltip
            &amp;amp;&amp;amp;  !dataView.metadata.objects.visualTooltip
        ) {
            dataView.metadata.objects.visualTooltip = dataView.metadata.objects.tooltip;
        }

    return VisualSettings.parse(dataView) as VisualSettings;
}&lt;/PRE&gt;&lt;P&gt;How would I go about ensuring that these changes get persisted into the &lt;FONT face="courier new,courier"&gt;dataView&lt;/FONT&gt; rather than passively applied? I'm pretty sure that once I can get this bit sorted then I'm good to go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 01:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/638726#M18719</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-03-07T01:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Objects Migration &amp; Report Page Tooltip Properties</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/639454#M18735</link>
      <description>&lt;P&gt;I suggest merging options:&lt;/P&gt;
&lt;PRE&gt;dataView.metadata.objects.visualTooltip = {&lt;BR /&gt;    ...dataView.metadata.objects.tooltip,&lt;BR /&gt;    ...dataView.metadata.objects.visualTooltip,&lt;BR /&gt;};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/639454#M18735</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-03-07T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Objects Migration &amp; Report Page Tooltip Properties</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/639921#M18746</link>
      <description>&lt;P&gt;Cheers,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&amp;nbsp;and thanks for making me aware of &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax" target="_self"&gt;spread syntax&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is getting me pretty close to the end - one final sticking point: if I do a &lt;EM&gt;Revert to default&lt;/EM&gt; in the &lt;EM&gt;visualTooltip&lt;/EM&gt; properties pane, it will revert the settings to the copied&amp;nbsp;&lt;EM&gt;tooltip&lt;/EM&gt; properties, as the framework removes the &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt; from my &lt;FONT face="courier new,courier"&gt;objects&lt;/FONT&gt;, but the &lt;FONT face="courier new,courier"&gt;tooltip&lt;/FONT&gt; is left alone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an approach I can use to observe for this event and nullify the &lt;FONT face="courier new,courier"&gt;tooltip&lt;/FONT&gt; object accordingly if the &lt;FONT face="courier new,courier"&gt;visualTooltip&lt;/FONT&gt; is reverted? The &lt;FONT face="courier new,courier"&gt;VisualUpdateType&lt;/FONT&gt; that gets fired is type 2 (Data), so doesn't look like there's anything I can get from that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 01:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/639921#M18746</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-03-08T01:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Objects Migration &amp; Report Page Tooltip Properties</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/645693#M18816</link>
      <description>&lt;P&gt;Ok... so this one's kind of resolved itself. Due to the introduction of the tooltip formatting changes in Power BI this month, I've opted to just enable the tooltip menus for this additional functionality and rename my existing tooltip menu as an additional set of properties. As I wasn't able to control the visibility of my tooltip menu objects based on the status of standard objects (i.e. whether the tooltip was being shown or not), it just seems easier for the end user this way. As a result, I don't need to handle migration of my objects from one key to another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;for all your help though!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 23:56:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Objects-Migration-amp-Report-Page-Tooltip/m-p/645693#M18816</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-03-14T23:56:37Z</dc:date>
    </item>
  </channel>
</rss>

