<?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: Modifying parseSettings/VisualSettings in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282497#M8402</link>
    <description>&lt;P&gt;If you want to include new properties into formatting panel you should:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a new class&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export class NewGroup {
    public show: boolean = true;
}&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Specify&amp;nbsp;an instance of the new class into VisualSettings class&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export class VisualSettings extends DataViewObjectsParser {
  public newGroup: NewGroup = new NewGroup();
}&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Specify the new group at capabilities.json&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;"objects": {
    "newGroup": {
        "displayName": "New Group",
        "properties": {
            "show": {
                "displayName": "Show",
                "type": {
                    "bool": true
                }
            }
        }
    }
}&lt;/PRE&gt;&lt;P&gt;Please note that these steps are for including the new group of properties. You can actually include new properties into the existing classes (please don't forget to&amp;nbsp;specify the same properties at capabilities.json).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further questions.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 08:50:43 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2017-10-19T08:50:43Z</dc:date>
    <item>
      <title>Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/246577#M7687</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A newly created visual comes with a static parseSettings method, which calls VisualSettings.parse(). If I inspect the return value of this call then it is a VisualSettings instance with a property called "dataPointSettings", which itself has properties like "defaultColor", "fontSize", etc. My question is where are these defined? I'd like to be able to modify these values but I can't find any class called VisualSettings in my source code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 11:24:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/246577#M7687</guid>
      <dc:creator>callum</dc:creator>
      <dc:date>2017-09-06T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/247175#M7700</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/36706"&gt;@callum&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check "src/settings.ts" in your visual project.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 07:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/247175#M7700</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2017-09-07T07:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282407#M8395</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/36706"&gt;@callum&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/11389"&gt;@v-chuncz-msft&lt;/a&gt;&lt;BR /&gt;I'm also trying to develop a custom visual and is stuck at this particular point.&lt;BR /&gt;how did you retrieve property values from the dataview and how did you populate the property pane afterwards?&lt;BR /&gt;Did you use &lt;FONT face="Book Antiqua"&gt;&lt;FONT&gt;&lt;FONT&gt;enumerateObjectInstances &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:40:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282407#M8395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T07:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282438#M8396</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you should&amp;nbsp;implement&amp;nbsp;&lt;STRONG&gt;enumerateObjectInstances&lt;/STRONG&gt; in order to update values at the format panel.&lt;/P&gt;&lt;P&gt;Do you have&amp;nbsp;&lt;STRONG&gt;VisualSettings&amp;nbsp;&lt;/STRONG&gt;class in your csutom visual?&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;</description>
      <pubDate>Thu, 19 Oct 2017 07:57:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282438#M8396</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-19T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282450#M8397</link>
      <description>&lt;P&gt;hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;BR /&gt;Yes,I am using &lt;STRONG&gt;VisualSettings&lt;/STRONG&gt; class.&lt;BR /&gt;Should i use the switch statement then.&lt;BR /&gt;I'm a little confused as this template is slightly different from the one in the&amp;nbsp;tutorial.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:04:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282450#M8397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T08:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282497#M8402</link>
      <description>&lt;P&gt;If you want to include new properties into formatting panel you should:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a new class&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export class NewGroup {
    public show: boolean = true;
}&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Specify&amp;nbsp;an instance of the new class into VisualSettings class&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export class VisualSettings extends DataViewObjectsParser {
  public newGroup: NewGroup = new NewGroup();
}&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Specify the new group at capabilities.json&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;"objects": {
    "newGroup": {
        "displayName": "New Group",
        "properties": {
            "show": {
                "displayName": "Show",
                "type": {
                    "bool": true
                }
            }
        }
    }
}&lt;/PRE&gt;&lt;P&gt;Please note that these steps are for including the new group of properties. You can actually include new properties into the existing classes (please don't forget to&amp;nbsp;specify the same properties at capabilities.json).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further questions.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282497#M8402</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-19T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282559#M8406</link>
      <description>&lt;P&gt;Actually I have done upto here.Since now there is no need for an interface,How do I retrieve the property value from the pane.&lt;BR /&gt;Also how would this code snippet change after I add more properties?&lt;/P&gt;&lt;PRE&gt;public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstance[] | VisualObjectInstanceEnumerationObject {                   
            return VisualSettings.enumerateObjectInstances(this.settings || VisualSettings.getDefault(), options);
        }&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/282559#M8406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/283543#M8423</link>
      <description>&lt;P&gt;You shouldn't change this snippet code.&lt;BR /&gt;All of properties will be parsed automatically.&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;</description>
      <pubDate>Fri, 20 Oct 2017 07:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/283543#M8423</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-20T07:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/285579#M8440</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;BR /&gt;and how do i retrieve the property values from the pane?&lt;BR /&gt;are interfaces needed?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 15:44:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/285579#M8440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-21T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying parseSettings/VisualSettings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/299654#M8816</link>
      <description>&lt;P&gt;The property will in &lt;STRONG&gt;this.settings.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Do you want to include any extra properties?&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;</description>
      <pubDate>Thu, 09 Nov 2017 07:29:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Modifying-parseSettings-VisualSettings/m-p/299654#M8816</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-11-09T07:29:20Z</dc:date>
    </item>
  </channel>
</rss>

