<?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: Unable to read default color object in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/328852#M9722</link>
    <description>&lt;P&gt;Can you share implementation of getValue function that you use to get color from the metadata?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Dec 2017 13:56:09 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2017-12-25T13:56:09Z</dc:date>
    <item>
      <title>Unable to read default color object</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/215503#M6789</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my capabilities.json I defind an object called color. I'm trying to define it inside my custom visual using :&amp;nbsp;&lt;/P&gt;&lt;DIV class="adn ads"&gt;&lt;DIV class="gs"&gt;&lt;DIV class="ii gt adP adO"&gt;&lt;DIV class="a3s aXjCH m15d5f0e14304c6b8"&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;startingColor: getValue&amp;lt;string&amp;gt;(options.dataViews[0].metadata.objects,'colors','startingColor',"#111111"),&lt;/PRE&gt;&lt;DIV class="yj6qo"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="hi"&gt;&amp;nbsp;But I'm unable to read the default color, since the visual is not running untill I define a new color in the styling pane.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="ajx"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2017 08:16:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/215503#M6789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T08:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read default color object</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/215693#M6795</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power BI doesn't allow to get default color. However, you might define your own default color to return it to Power BI as a default.&lt;/P&gt;&lt;P&gt;You just need to apply your default color if there's no color in the metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 10:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/215693#M6795</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-07-20T10:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read default color object</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/328253#M9692</link>
      <description>&lt;P&gt;Can you please let me know how to do it? How can I check whether the metadata available or not?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 19:02:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/328253#M9692</guid>
      <dc:creator>satishr</dc:creator>
      <dc:date>2017-12-22T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read default color object</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/328852#M9722</link>
      <description>&lt;P&gt;Can you share implementation of getValue function that you use to get color from the metadata?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 13:56:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/328852#M9722</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-25T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read default color object</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/329348#M9740</link>
      <description>&lt;P&gt;I figured it out. Thanks. I'm using the condition&amp;nbsp;if (options.dataViews[0].metadata.objects) to check whether the user has made any changes in the format pane or not.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 06:55:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-read-default-color-object/m-p/329348#M9740</guid>
      <dc:creator>satishr</dc:creator>
      <dc:date>2017-12-27T06:55:20Z</dc:date>
    </item>
  </channel>
</rss>

