<?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: Implementing FieldPicker formatting setting in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3711803#M8962</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/284777"&gt;@MartinRKrupa&lt;/a&gt;, while I had no luck figuring out how to do it (if it's even possible), I did find a workaround. &lt;SPAN&gt;VisualEnumerationInstanceKinds allows users to add measures as values for settings in PowerBI Custom Visuals via Conditional Formatting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's not perfect, but it might be possible for you to achieve something similar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    public fontColor: formattingSettings.ColorPicker = new formattingSettings.ColorPicker({
        name: 'fontColor',
        displayName: 'Text color',
        instanceKind: VisualEnumerationInstanceKinds.ConstantOrRule,
        value: {
            value: ''
        }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The above example is a simple color picker example. Using the VisualEnumerationInstanceKinds.ConstantOrRule, users get the f(x) icon next to the setting and can set it to a measure (although in this case the output should be a hex color code). With this, users can easily define their own dynamic values for color style, e.g. for a "dark mode".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Most formattingSettings I have seen allow the instanceKind property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 16:54:43 GMT</pubDate>
    <dc:creator>JSJB</dc:creator>
    <dc:date>2024-02-20T16:54:43Z</dc:date>
    <item>
      <title>Implementing FieldPicker formatting setting</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3316284#M7745</link>
      <description>&lt;P class="lia-align-justify"&gt;How do you implement the FieldPicker formatting setting in a project? I am having severe issues with it, and I can't find a single example anywhere of an implementation of it (in code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current set-up. I have tried to make it as basic as possible but the only value I get when implemented and adding a data field is "[Object object]" (as an actual string value).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Capabilities:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;                "DropdownDataFields":{
                    "type": {
                        "text": true
                    }
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(note, I have tried both "numeric", "integer", "text", "bool" and "enumeration: []")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Setting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    public dataFields: formattingSettings.FieldPicker = new formattingSettings.FieldPicker({
        validators: {},
        name:"DropdownDataFields",
        value: []
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 13:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3316284#M7745</guid>
      <dc:creator>JSJB</dc:creator>
      <dc:date>2023-07-05T13:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing FieldPicker formatting setting</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3711500#M8960</link>
      <description>&lt;P&gt;Hi, I'm having the same issue. Anyone's figured out /found any documentation on how to use the FieldPicker?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 15:20:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3711500#M8960</guid>
      <dc:creator>MartinRKrupa</dc:creator>
      <dc:date>2024-02-20T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing FieldPicker formatting setting</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3711803#M8962</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/284777"&gt;@MartinRKrupa&lt;/a&gt;, while I had no luck figuring out how to do it (if it's even possible), I did find a workaround. &lt;SPAN&gt;VisualEnumerationInstanceKinds allows users to add measures as values for settings in PowerBI Custom Visuals via Conditional Formatting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's not perfect, but it might be possible for you to achieve something similar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    public fontColor: formattingSettings.ColorPicker = new formattingSettings.ColorPicker({
        name: 'fontColor',
        displayName: 'Text color',
        instanceKind: VisualEnumerationInstanceKinds.ConstantOrRule,
        value: {
            value: ''
        }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The above example is a simple color picker example. Using the VisualEnumerationInstanceKinds.ConstantOrRule, users get the f(x) icon next to the setting and can set it to a measure (although in this case the output should be a hex color code). With this, users can easily define their own dynamic values for color style, e.g. for a "dark mode".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Most formattingSettings I have seen allow the instanceKind property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/3711803#M8962</guid>
      <dc:creator>JSJB</dc:creator>
      <dc:date>2024-02-20T16:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing FieldPicker formatting setting</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/4104415#M10343</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 14:55:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Implementing-FieldPicker-formatting-setting/m-p/4104415#M10343</guid>
      <dc:creator>MartinRKrupa</dc:creator>
      <dc:date>2024-08-16T14:55:49Z</dc:date>
    </item>
  </channel>
</rss>

