<?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: Use same button to select and clear field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732918#M452425</link>
    <description>&lt;P&gt;You Mr Ruben are an All Star.&lt;/P&gt;&lt;P&gt;That is exactly what I wanted. I will use this scenario for countless other applications.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch for staying with me on this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 19:20:13 GMT</pubDate>
    <dc:creator>ZoeM</dc:creator>
    <dc:date>2020-08-03T19:20:13Z</dc:date>
    <item>
      <title>Use same button to select and clear field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732516#M452403</link>
      <description>&lt;P&gt;Hello Community.&lt;/P&gt;&lt;P&gt;I have a button which has a variable action to show/hide columns (dimensions) in my table chart when clicked.&lt;/P&gt;&lt;P&gt;I would also like this same button to be able to select values from a field and also clear the values when clicked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variable expression for the dimensions is easy, if(vSS=0,1,0). All I would like is that if the result is 0, values in a field are selected. If the result is 1, the results are cleared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732516#M452403</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2024-11-16T00:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use same button to select and clear field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732585#M452407</link>
      <description>&lt;P&gt;Hi, I'm not sure to understand. To clear selctions in a field there is a 'delete field' action, and to select there is a 'Select in Field' action.&lt;/P&gt;&lt;P&gt;Each of them asks for a field name to select or clear selctions, in that name you can set an expression like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(vSS=0, 'FieldName')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;if(vSS=1, 'FieldName')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So you have both actions in the button but only one on them sets the correct field name based on vSS value.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 10:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732585#M452407</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-08-01T10:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use same button to select and clear field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732795#M452419</link>
      <description>&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;Thanks for getting back to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a button that currently shows/hides fields in my table chart.&lt;/P&gt;&lt;P&gt;I want to add functionality to it so that it can also select text values or clear text values when the User chooses to Show or Hide the additional columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My variable expression for showing hiding columns is if(vSS=0,1,0)&lt;/P&gt;&lt;P&gt;So if vSS =0 hides the columns. When the columns are hidden,I would like to set up an expression so that text values are selected from my specified Field Name i.e. if vSS=0, select 'John, James, Edith' from Field Name 'Sales Person'.&lt;/P&gt;&lt;P&gt;When vSS=1, the columns are unhidden. Set up an expression to clear selections in Field Name 'Sales Person'.&lt;/P&gt;&lt;P&gt;I do believe there should be a way of doing this with in one button vs. having two different buttons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this adds more value to my request and thanks again for helping out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 13:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732795#M452419</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2020-08-03T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use same button to select and clear field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732914#M452424</link>
      <description>&lt;P&gt;Hi Zoe, maybe I don't explain it right, I upload a sample to show how it can work with one button, the trick is having a conditional field name for actions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_0-1596481264885.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38483i9EC3E7E695EBAE70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_0-1596481264885.png" alt="rubenmarin_0-1596481264885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_1-1596481308328.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38484i39690FDFAB66ADD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_1-1596481308328.png" alt="rubenmarin_1-1596481308328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 19:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732914#M452424</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-08-03T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use same button to select and clear field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732918#M452425</link>
      <description>&lt;P&gt;You Mr Ruben are an All Star.&lt;/P&gt;&lt;P&gt;That is exactly what I wanted. I will use this scenario for countless other applications.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch for staying with me on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 19:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-same-button-to-select-and-clear-field/m-p/1732918#M452425</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2020-08-03T19:20:13Z</dc:date>
    </item>
  </channel>
</rss>

