<?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: Custom Visual, when I add table binding, the custom formatting disappears. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/645697#M18817</link>
    <description>&lt;P&gt;I can't help with the majority of what you're asking, but regarding your question about &lt;FONT face="courier new,courier"&gt;metadata.objects&lt;/FONT&gt; not always being present - in my experience, this is only populated if a property is different to its default value, i.e. modified by the end-user. If your visual has not have any properties modified from the defaults then this will be empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The framework will assume the default values (typically specified in your &lt;FONT face="courier new,courier"&gt;settings.ts&lt;/FONT&gt;) if this is not present for any objects defined. The following code in your post is handling that part:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const settings: VisualSettings = this.visualSettings || 
                                         VisualSettings.getDefault() as VisualSettings;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 00:09:57 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2019-03-15T00:09:57Z</dc:date>
    <item>
      <title>Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/644362#M18798</link>
      <description>&lt;P&gt;I use API 2.3.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I created table&amp;nbsp;bind&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Category",
            "name": "Category",
            "kind": "GroupingOrMeasure"
        },
        {
            "displayName": "Value1",
            "name": "Value1",
            "kind": "GroupingOrMeasure"
        },
        {
            "displayName": "Value2",
            "name": "Value2",
            "kind": "GroupingOrMeasure"
        }
    ],
    "objects": {
        "category": {
            "displayName": "Category ",
            "properties": {
                "show": {
                    "displayName": "Turn on/off",
                    "type": {
                        "bool": true
                    }
                },    
                "fontColor": {
                    "displayName": "Font Color",
                    "description": "Select font color",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                }
            }
        }       
    },
    "dataViewMappings": [
        {
            "table": {
                "rows": {
                    "select": [
                        {
                            "for": {
                                "in": "Category"
                            }
                        },                
                        {
                            "for": {
                                "in": "Value1"
                            }
                        },
                        {
                            "for": {
                                "in": "Value2"
                            }
                        }
                    ],
                    "dataReductionAlgorithm": {
                        "sample": {
                            "count": 2000
                        }
                    }
                }
            }
        }
    ]
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;When I add custom visual to the board, I see custom formatting. But when select some&amp;nbsp;field, custom formatting disappears.&lt;/DIV&gt;&lt;DIV&gt;The general format is always available.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I bind via category, everything works correctly. But I need to work with table now.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Function enumerateObjectInstances has default code&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt; const settings: VisualSettings = this.visualSettings || 
                                         VisualSettings.getDefault() as VisualSettings;
        var visualObjects: VisualObjectInstanceEnumerationObject = &amp;lt;VisualObjectInstanceEnumerationObject&amp;gt; VisualSettings.enumerateObjectInstances(settings, options);
        return visualObjects;&lt;/PRE&gt;&amp;nbsp;In update method I add&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;dataView&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;dataViews&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;||&lt;/SPAN&gt;&lt;SPAN&gt; {} &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;powerbi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DataView&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;visualSettings&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;VisualSettings&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;parse&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;VisualSettings&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dataView&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What I miss?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also what is the best way to parse data bind?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have noticed that&amp;nbsp;sometimes&amp;nbsp;metadata.object is not displayed, why?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Mar 2019 17:23:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/644362#M18798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-13T17:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/645237#M18807</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is necessary to analyze the source code to make some suggestion. Could you please share the repo link or send files to&amp;nbsp;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_self"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&amp;nbsp;for analysis?&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;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 12:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/645237#M18807</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-03-14T12:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/645697#M18817</link>
      <description>&lt;P&gt;I can't help with the majority of what you're asking, but regarding your question about &lt;FONT face="courier new,courier"&gt;metadata.objects&lt;/FONT&gt; not always being present - in my experience, this is only populated if a property is different to its default value, i.e. modified by the end-user. If your visual has not have any properties modified from the defaults then this will be empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The framework will assume the default values (typically specified in your &lt;FONT face="courier new,courier"&gt;settings.ts&lt;/FONT&gt;) if this is not present for any objects defined. The following code in your post is handling that part:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const settings: VisualSettings = this.visualSettings || 
                                         VisualSettings.getDefault() as VisualSettings;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 00:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/645697#M18817</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-03-15T00:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646137#M18822</link>
      <description>&lt;P&gt;Thanks, I've noticed it duration same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 09:59:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646137#M18822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T09:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646140#M18823</link>
      <description>&lt;P&gt;I found the problem, It was the cache issues.&lt;/P&gt;&lt;P&gt;Also, do you know where I can find&amp;nbsp;full documentation&amp;nbsp;about capabilities.json?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:03:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646140#M18823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T10:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646154#M18824</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should check the following documentation pages:&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/concepts/capabilities/" target="_self"&gt;https://microsoft.github.io/PowerBI-visuals/docs/concepts/capabilities/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/concepts/dataviewmappings/" target="_self"&gt;https://microsoft.github.io/PowerBI-visuals/docs/concepts/dataviewmappings/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/concepts/objects-and-properties/" target="_self"&gt;https://microsoft.github.io/PowerBI-visuals/docs/concepts/objects-and-properties/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:34:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646154#M18824</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-03-15T10:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual, when I add table binding, the custom formatting disappears.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646159#M18825</link>
      <description>&lt;P&gt;Ok, thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:37:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-when-I-add-table-binding-the-custom-formatting/m-p/646159#M18825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T10:37:35Z</dc:date>
    </item>
  </channel>
</rss>

