<?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: How to toggle (multiple) field values with an action button? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843864#M296449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for multiple selection you have to use this format (value1|value2).&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if($(vToggleDate)=1, '('&amp;amp;GetFieldSelections(Date_SL.Month,'|',15)&amp;amp;')')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 15:46:46 GMT</pubDate>
    <dc:creator>pokassov</dc:creator>
    <dc:date>2015-06-17T15:46:46Z</dc:date>
    <item>
      <title>How to toggle (multiple) field values with an action button?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843863#M296448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I am battling with an action button that allows me to switch between two field&amp;nbsp; values. (QlikView 11.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a TURNOVER table that contains two date fields: %SLDate and %WLDate. Linked are the tables Date_SL and Date_WL.&lt;/P&gt;&lt;P&gt;With a button, I would like to assign the selected values of Date_WL.Month to Date_SL.Month and vice versa.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TestGetFieldValues1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89760_TestGetFieldValues1.PNG" style="height: auto;" /&gt;&amp;nbsp; ----&amp;gt;&lt;IMG alt="TestGetFieldValues2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/89761_TestGetFieldValues2.PNG" style="height: auto;" /&gt; &lt;/P&gt;&lt;P&gt;This works fine, as long as I select only one value (e.g. ‘Jan’).&lt;/P&gt;&lt;P&gt; As soon as I select more than one value (e.g. ‘Jan’ &amp;amp; ‘Feb’) and press the button, the selection for both fields is empty.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TestGetFieldValues3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/89765_TestGetFieldValues3.PNG" style="height: auto;" /&gt;&amp;nbsp; ----&amp;gt; &lt;IMG alt="TestGetFieldValues4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/89766_TestGetFieldValues4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a variable that toggles between 1 and -1.&lt;/P&gt;&lt;P&gt;Further on I use two 'Select in Field'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for&amp;nbsp;&amp;nbsp;&amp;nbsp; Date_WL.Month&amp;nbsp; ( &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vToggleDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date_SL.Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',',15))&amp;nbsp; &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; Date_SL.Month (&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vToggleDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=-1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date_WL.Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',',15))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make the function to accept multiple selections?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843863#M296448</guid>
      <dc:creator />
      <dc:date>2015-06-17T13:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle (multiple) field values with an action button?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843864#M296449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for multiple selection you have to use this format (value1|value2).&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if($(vToggleDate)=1, '('&amp;amp;GetFieldSelections(Date_SL.Month,'|',15)&amp;amp;')')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843864#M296449</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-06-17T15:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle (multiple) field values with an action button?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843865#M296450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if($(vToggleDate)=1, '("' &amp;amp; concat(DISTINCT Date_SL.Month, '"|"') &amp;amp; '")', '')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 17:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843865#M296450</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-17T17:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle (multiple) field values with an action button?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843866#M296451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your solution works exactly as I need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 06:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-toggle-multiple-field-values-with-an-action-button/m-p/843866#M296451</guid>
      <dc:creator />
      <dc:date>2015-06-19T06:20:04Z</dc:date>
    </item>
  </channel>
</rss>

