<?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: Can i perform two actions in the same button? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245970#M93740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you are still looking for a solution but I came across this post, I did something similar recently.. There are different ways but you can have a look on this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You create a variable for example: vButtonAction and assign value 0 (or 1 or whatever you want actually what will separate selection later... Digits are the best way.).&lt;/P&gt;&lt;P&gt;2. Under the Button action the first action will be to set variable:&lt;/P&gt;&lt;P&gt;Variable: vButtonAction&lt;/P&gt;&lt;P&gt;Value: =if(vButtonAction=0,1,0)&lt;/P&gt;&lt;P&gt;3. You add second action for the same button: "Select in field"&lt;/P&gt;&lt;P&gt;Field: =if(vButtonAction=0,'F',null())&lt;/P&gt;&lt;P&gt;Search String: *&lt;/P&gt;&lt;P&gt;4, You add 3rd action for the same button: "Clear field"&lt;/P&gt;&lt;P&gt;Field: =if(vButtonAction=1,'F',null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 10:37:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-07T10:37:35Z</dc:date>
    <item>
      <title>Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245961#M93731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me in this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am attaching my sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a button.Now i want to perform the selection and deselection(clear) by using the same button with some seconds of time gap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i achieve like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 09:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245961#M93731</guid>
      <dc:creator />
      <dc:date>2011-09-08T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245962#M93732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if add first selection and then clear you will get no change after click on button but actions are running&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached file this give two action on same buttion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 09:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245962#M93732</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-08T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245963#M93733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached sample by using two button you can achieve this at a time one in enabled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Let me know if it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 09:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245963#M93733</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-08T09:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245964#M93734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the updated Solution sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 09:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245964#M93734</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-08T09:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245965#M93735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil and Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are taking two buttons but what happened is i must press the button two times for the complete functionality.&lt;/P&gt;&lt;P&gt;But,i need to achieve this by single click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't&amp;nbsp; it possible in one click?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 11:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245965#M93735</guid>
      <dc:creator />
      <dc:date>2011-09-08T11:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245966#M93736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; see the 2nd attached file properly in my post &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is for single click only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 11:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245966#M93736</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-08T11:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245967#M93737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the files what you sent are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With only one button and one click, I need to achieve the functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245967#M93737</guid>
      <dc:creator />
      <dc:date>2011-09-08T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245968#M93738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my understanding it will done by on click of the button at a time and different action handeled by buttons so here we acheve this by two buttons, if i got any other way so i let you know abt that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245968#M93738</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-08T12:29:07Z</dc:date>
    </item>
    <item>
      <title>Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245969#M93739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the macro? You can easily create a macro to achieve your goal, and linked it with the button using the "Run Macro" option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Janusz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245969#M93739</guid>
      <dc:creator />
      <dc:date>2011-09-08T12:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can i perform two actions in the same button?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245970#M93740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you are still looking for a solution but I came across this post, I did something similar recently.. There are different ways but you can have a look on this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You create a variable for example: vButtonAction and assign value 0 (or 1 or whatever you want actually what will separate selection later... Digits are the best way.).&lt;/P&gt;&lt;P&gt;2. Under the Button action the first action will be to set variable:&lt;/P&gt;&lt;P&gt;Variable: vButtonAction&lt;/P&gt;&lt;P&gt;Value: =if(vButtonAction=0,1,0)&lt;/P&gt;&lt;P&gt;3. You add second action for the same button: "Select in field"&lt;/P&gt;&lt;P&gt;Field: =if(vButtonAction=0,'F',null())&lt;/P&gt;&lt;P&gt;Search String: *&lt;/P&gt;&lt;P&gt;4, You add 3rd action for the same button: "Clear field"&lt;/P&gt;&lt;P&gt;Field: =if(vButtonAction=1,'F',null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-i-perform-two-actions-in-the-same-button/m-p/245970#M93740</guid>
      <dc:creator />
      <dc:date>2013-01-07T10:37:35Z</dc:date>
    </item>
  </channel>
</rss>

