<?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 Power BI Visual: Format Panel Numeric Input Contraints in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Power-BI-Visual-Format-Panel-Numeric-Input-Contraints/m-p/2949996#M6340</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a custom visual and have a property "Number of Decimal Places" that is a user input within the format panel.&amp;nbsp; With the latest FormattingModel utils API, I am using the "&lt;SPAN&gt;NumUpDown"&amp;nbsp;Formatting Property and Numeric in the Capabilities Value Type.&amp;nbsp; In the microsoft documentation (&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options&lt;/A&gt;) it suggests using the following code to constrain the values of a numeric input:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;this.visualSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualSettingsModel, options.dataViews);&lt;BR /&gt;this.visualSettings.circle.circleThickness.value = Math.max(0, this.visualSettings.circle.circleThickness.value);&lt;BR /&gt;this.visualSettings.circle.circleThickness.value = Math.min(10, this.visualSettings.circle.circleThickness.value);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However, the formatting panel does not seem to immediately update, you have to click into a different card before the value updates to the contrained value. Is there a method to update the format panel immediately after the code shown above to reflect the contraint? Or a different method to contrain the value within the&amp;nbsp;&lt;SPAN&gt;getFormattingModel() method?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 02:47:34 GMT</pubDate>
    <dc:creator>andiemcp13</dc:creator>
    <dc:date>2022-12-06T02:47:34Z</dc:date>
    <item>
      <title>Custom Power BI Visual: Format Panel Numeric Input Contraints</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Power-BI-Visual-Format-Panel-Numeric-Input-Contraints/m-p/2949996#M6340</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a custom visual and have a property "Number of Decimal Places" that is a user input within the format panel.&amp;nbsp; With the latest FormattingModel utils API, I am using the "&lt;SPAN&gt;NumUpDown"&amp;nbsp;Formatting Property and Numeric in the Capabilities Value Type.&amp;nbsp; In the microsoft documentation (&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options&lt;/A&gt;) it suggests using the following code to constrain the values of a numeric input:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;this.visualSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualSettingsModel, options.dataViews);&lt;BR /&gt;this.visualSettings.circle.circleThickness.value = Math.max(0, this.visualSettings.circle.circleThickness.value);&lt;BR /&gt;this.visualSettings.circle.circleThickness.value = Math.min(10, this.visualSettings.circle.circleThickness.value);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However, the formatting panel does not seem to immediately update, you have to click into a different card before the value updates to the contrained value. Is there a method to update the format panel immediately after the code shown above to reflect the contraint? Or a different method to contrain the value within the&amp;nbsp;&lt;SPAN&gt;getFormattingModel() method?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 02:47:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Power-BI-Visual-Format-Panel-Numeric-Input-Contraints/m-p/2949996#M6340</guid>
      <dc:creator>andiemcp13</dc:creator>
      <dc:date>2022-12-06T02:47:34Z</dc:date>
    </item>
  </channel>
</rss>

