<?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: Change button value, when clear all selections is clicked. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301786#M838355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about the button name only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can changes if you do the following condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button Name:&lt;/P&gt;&lt;P&gt;=if($(vVariableName=1,'Order','Request')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action-&amp;gt;External-&amp;gt;Set Variable:&lt;/P&gt;&lt;P&gt;=if(&lt;SPAN style="font-size: 13.3333px;"&gt;$(vVariableName=1&lt;/SPAN&gt;,0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 15:00:43 GMT</pubDate>
    <dc:creator>CarlosAMonroy</dc:creator>
    <dc:date>2017-05-08T15:00:43Z</dc:date>
    <item>
      <title>Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301781#M838350</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;I have a button that changes the filtering of certain fields when it is clicked. The text on the button changes from order to request on clicking and vice versa (this is achieved by creating a variable vhide and when the value is 1 it shows order). &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When i click the clear all selections button the button shows the same value (order or request) . I want the button to show 'Order' each time when I press clear all selections button. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301781#M838350</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301782#M838351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Your talking about the default clear All button ? if yes then it won't re set the variables , you need to create a custom button and add the action to cleat all selections + Action to clear all the required variables &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301782#M838351</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-08T14:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301783#M838352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i create a button that clears all variables when the clear all selection button is clicked? I would make this button invisible. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301783#M838352</guid>
      <dc:creator />
      <dc:date>2017-05-08T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301784#M838353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rahul!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to catch when all selections are clear with "=if(isnull(GetCurrentSelections())=-1,'Order',...".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301784#M838353</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-05-08T14:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301785#M838354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there absolutely no workaround for doing that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301785#M838354</guid>
      <dc:creator />
      <dc:date>2017-05-08T14:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301786#M838355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about the button name only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can changes if you do the following condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button Name:&lt;/P&gt;&lt;P&gt;=if($(vVariableName=1,'Order','Request')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action-&amp;gt;External-&amp;gt;Set Variable:&lt;/P&gt;&lt;P&gt;=if(&lt;SPAN style="font-size: 13.3333px;"&gt;$(vVariableName=1&lt;/SPAN&gt;,0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301786#M838355</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-05-08T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301787#M838356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is this code doing? I want the button to show order , when i click clear all. Your code just changes the name of the button when it is clicked. I have already done that . I need a way to show order when clear all selection is clicked basically go back to the original variable value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301787#M838356</guid>
      <dc:creator />
      <dc:date>2017-05-08T15:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301788#M838357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(IsNull(GetCurrentSelections()),value,value) to change the value of a variable. I am just not able to do it though.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301788#M838357</guid>
      <dc:creator />
      <dc:date>2017-05-08T15:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301789#M838358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=if(len(GetCurrentSelections())=0,value,value) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301789#M838358</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-05-08T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301790#M838359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot hook the Clear All button (it's a standard Windows toolbar button which doesn't even exist in the Ajax client), and in QlikView you cannot detect any triggers or messages sent by Windows objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Avinash already correctly stated, you can however simulate the effect you want to obtain by duplicating the Clear All button as a regular QlikView button, adding a Clear-All action and adding a Set Variable action to resrt the label variable to a default value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301790#M838359</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-08T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301791#M838360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you hit a Clear All button the value of GetCurrentSelection() function becomes null. So, all you need is write one more condition in button text like I wrote above:&lt;/P&gt;&lt;P&gt;=if(isnull(GetCurrentSelections())=-1,'Order',if(vhide=1,'Order','Request'))&lt;/P&gt;&lt;P&gt;See the picture below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="162519" alt="button_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162519_button_1.png" style="height: 602px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;After I clicked "Cleat All" button the text has changed:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="162520" alt="button_2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/162520_button_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 16:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301791#M838360</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-05-08T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301792#M838361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are we able to assign a bookmark to the clear all button then? I assumed if we are able to assign something to the clear all button we could also change the variable associated to a button. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 17:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301792#M838361</guid>
      <dc:creator />
      <dc:date>2017-05-08T17:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301793#M838362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It didn't work when i incorporated it in my code :&lt;/P&gt;&lt;P&gt;=if(isnull(GetCurrentSelections())=0, 'Current Filter: Order Date',&lt;/P&gt;&lt;P&gt;if(vhide=1,'Current Filter: Request Date', 'Current Filter: Order Date')) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that right ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 17:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301793#M838362</guid>
      <dc:creator />
      <dc:date>2017-05-08T17:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change button value, when clear all selections is clicked.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301794#M838363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rahul!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wouldn't work because you set your first codition as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;isnull(GetCurrentSelections())=0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Your expression sounds like "When something is selected pick 'Order date'...", but if I understood you correctly you want to get 'Order date' &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;each time when you press clear all selections button. Solving that case try to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;isnull(GetCurrentSelections())=-1, it means "When nothing is selected pick...".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 04:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-button-value-when-clear-all-selections-is-clicked/m-p/1301794#M838363</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-05-09T04:59:11Z</dc:date>
    </item>
  </channel>
</rss>

