<?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: Mutiple Action with one button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593511#M1116011</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;If those multiple fuctions to the button running under one logic, f.e. first click switches something, and secon click is switching off something, then you could simply use well known solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable, Settings&amp;gt; Variable overview&amp;gt;Add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a button, and in Actions, External&amp;gt;Set variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There at the top set the variable created and in the bottom field include some simple logic: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vVar=0,1,0) if variable value is equal to 0, then return the value 1 and set it to vVar, else return 0. So every time button is clicked vVar value will always contineously switched between 1 and 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, that you should set also first variable definition to 1 or 0, depending on what you will define in Layout section of an object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you could see abovem we set only button settings, now we should add Layout setting to an object (or objects) that this button sould reflect its actions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose any Object (chart, text object, list etc.) and in Layout sections set Layout conditional to that Variable value that fits your logic: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVar=1, this will mean that this object will be visible only vVar=1 is true, else it will be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use this to practice in other varians to do in visualisation, for example, switching variables, expressions, also try to set as button action a couple or more actions with logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the main question minimize and maximize I would recommend you to use simply two buttons, one for minimize object, and button disappears, but appears exactly the same but with action in it to maximize the minimized object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also other solutions, using triggers, macro, snowfall with a way mentioned in this article etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 11:38:49 GMT</pubDate>
    <dc:creator>marchoctober</dc:creator>
    <dc:date>2014-02-17T11:38:49Z</dc:date>
    <item>
      <title>Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593506#M1116006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to qlikview. I wonder if anybody could solve my problem with buttons.&lt;/P&gt;&lt;P&gt;I am trying to define multiple functions on single button. For example:- on my first click the button should minimize one object and on second click it should maximize that object, there could be any action for that matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun Singhal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593506#M1116006</guid>
      <dc:creator />
      <dc:date>2014-02-17T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593507#M1116007</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;For your requirement, you can use two button and show / hide that buttons based on clicks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Keep both button in same height, width and positions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solves your scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593507#M1116007</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-02-17T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593508#M1116008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Varun.&lt;/P&gt;&lt;P&gt;You can have two buttons -&amp;nbsp; one to minimize, one to maximize - sitting in the same location. What you can do is use the show/hide function on them so that when the minimize function is used, only the maximize button can be seen etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593508#M1116008</guid>
      <dc:creator>ngulliver</dc:creator>
      <dc:date>2014-02-17T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593509#M1116009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To minimize and maximize you need macro, but it is better not to use macros ... I suggest to you the hide / show of an object with the conditional view; set a variable and set the hide and show depending on the variable value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593509#M1116009</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-17T11:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593510#M1116010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Attachment.&lt;/P&gt;&lt;P&gt;May this help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593510#M1116010</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-02-17T11:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593511#M1116011</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;If those multiple fuctions to the button running under one logic, f.e. first click switches something, and secon click is switching off something, then you could simply use well known solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable, Settings&amp;gt; Variable overview&amp;gt;Add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a button, and in Actions, External&amp;gt;Set variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There at the top set the variable created and in the bottom field include some simple logic: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vVar=0,1,0) if variable value is equal to 0, then return the value 1 and set it to vVar, else return 0. So every time button is clicked vVar value will always contineously switched between 1 and 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, that you should set also first variable definition to 1 or 0, depending on what you will define in Layout section of an object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you could see abovem we set only button settings, now we should add Layout setting to an object (or objects) that this button sould reflect its actions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose any Object (chart, text object, list etc.) and in Layout sections set Layout conditional to that Variable value that fits your logic: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVar=1, this will mean that this object will be visible only vVar=1 is true, else it will be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use this to practice in other varians to do in visualisation, for example, switching variables, expressions, also try to set as button action a couple or more actions with logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the main question minimize and maximize I would recommend you to use simply two buttons, one for minimize object, and button disappears, but appears exactly the same but with action in it to maximize the minimized object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also other solutions, using triggers, macro, snowfall with a way mentioned in this article etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593511#M1116011</guid>
      <dc:creator>marchoctober</dc:creator>
      <dc:date>2014-02-17T11:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593512#M1116012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi varun&lt;/P&gt;&lt;P&gt;please find attchment&lt;/P&gt;&lt;P&gt;I have implemented in single button&lt;/P&gt;&lt;P&gt;for minimizing and maximizing Chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593512#M1116012</guid>
      <dc:creator />
      <dc:date>2014-02-17T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593513#M1116013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is also one of the options, mix of several simultaneous actions in one button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First two actions are maximizing or minimizing the object (conditional only one rule is used at a time, as the other is blocked by logic statement with IF in its value), and third action is sets the variable used in logic of first two actions:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one of the slutions I mentioned, mix with actions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 12:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593513#M1116013</guid>
      <dc:creator>marchoctober</dc:creator>
      <dc:date>2014-02-17T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593514#M1116014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi varun ,&lt;/P&gt;&lt;P&gt;have tried my recent single_button.qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 12:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593514#M1116014</guid>
      <dc:creator />
      <dc:date>2014-02-17T12:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593515#M1116015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we provide any assistance further? As the question still not answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 10:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593515#M1116015</guid>
      <dc:creator>marchoctober</dc:creator>
      <dc:date>2014-02-23T10:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593516#M1116016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi varun ,&lt;/P&gt;&lt;P&gt;i think u got your Questions Answer&amp;nbsp; so please mark this Question As answered &lt;/P&gt;&lt;P&gt;so it will help others those who are searching for same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 13:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593516#M1116016</guid>
      <dc:creator />
      <dc:date>2014-02-23T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mutiple Action with one button</title>
      <link>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593517#M1116017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much for helping me on this one. I have definitely got my answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 05:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutiple-Action-with-one-button/m-p/593517#M1116017</guid>
      <dc:creator />
      <dc:date>2014-02-24T05:49:00Z</dc:date>
    </item>
  </channel>
</rss>

