<?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] Boolean Object Properties Auto Exclusive in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020256#M23057</link>
    <description>&lt;P&gt;If you are using a settings class based on &lt;STRONG&gt;&lt;SPAN&gt;DataViewObjectsParser&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;powerbi-visuals-utils-dataviewutils&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; helper module, you can just alter the properties of that class.&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;// settings.ts
import { dataViewObjectsParser } from "powerbi-visuals-utils-dataviewutils";

import DataViewObjectsParser = dataViewObjectsParser.DataViewObjectsParser;

export class VisualSettings extends DataViewObjectsParser {
  ...
}

// visuals.ts
public update(options: VisualUpdateOptions) {
  this.settings = &amp;lt;VisualSettings&amp;gt;VisualSettings.parse(options &amp;amp;&amp;amp; options.dataViews &amp;amp;&amp;amp; options.dataViews[0]);
  this.settings.boolean2 = !this.settings.boolean1;
  ...
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-JP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2020 20:10:16 GMT</pubDate>
    <dc:creator>jppp</dc:creator>
    <dc:date>2020-04-10T20:10:16Z</dc:date>
    <item>
      <title>[Custom Visual] Boolean Object Properties Auto Exclusive</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020025#M23046</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find a solution on google or docuementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to have these 2 or more properties be auto exclusive? So that once I select one of them, the other will be set as false (off) automatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 211px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/255103iCDC550F35684981C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So setting the value from code side, once I will find one true, I will set the others to false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 16:54:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020025#M23046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-10T16:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: [Custom Visual] Boolean Object Properties Auto Exclusive</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020214#M23055</link>
      <description>&lt;P&gt;You can change the settings of the propety pane directly via your code, so in your case to toggle one boolean based in the status of the other.&lt;/P&gt;&lt;P&gt;I doubt if two toggles that interact which each are that userfriendly. Can't you use a more generic toggle or a dropdown?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-JP&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020214#M23055</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2020-04-10T19:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: [Custom Visual] Boolean Object Properties Auto Exclusive</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020238#M23056</link>
      <description>So can I change the value assigning it directly via the options.dataview object in the update method? Or should I use a setter function?&lt;BR /&gt;&lt;BR /&gt;About the user interface yes, I know, but I need a visual that only my team will use and it is a super custom visual.&lt;BR /&gt;&lt;BR /&gt;Thanks!!</description>
      <pubDate>Fri, 10 Apr 2020 19:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020238#M23056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-10T19:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Custom Visual] Boolean Object Properties Auto Exclusive</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020256#M23057</link>
      <description>&lt;P&gt;If you are using a settings class based on &lt;STRONG&gt;&lt;SPAN&gt;DataViewObjectsParser&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;powerbi-visuals-utils-dataviewutils&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; helper module, you can just alter the properties of that class.&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;// settings.ts
import { dataViewObjectsParser } from "powerbi-visuals-utils-dataviewutils";

import DataViewObjectsParser = dataViewObjectsParser.DataViewObjectsParser;

export class VisualSettings extends DataViewObjectsParser {
  ...
}

// visuals.ts
public update(options: VisualUpdateOptions) {
  this.settings = &amp;lt;VisualSettings&amp;gt;VisualSettings.parse(options &amp;amp;&amp;amp; options.dataViews &amp;amp;&amp;amp; options.dataViews[0]);
  this.settings.boolean2 = !this.settings.boolean1;
  ...
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-JP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:10:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Boolean-Object-Properties-Auto-Exclusive/m-p/1020256#M23057</guid>
      <dc:creator>jppp</dc:creator>
      <dc:date>2020-04-10T20:10:16Z</dc:date>
    </item>
  </channel>
</rss>

