<?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 Simple toggle button to lock selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695207#M1071166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know of an example where a button is used to Lock/unlock a selection in a particular list box? I imagine that I'll have to actually have two buttons (one to lock and one to unlock) and a "hide/show" variable depending on the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the condition I need to check against is: &lt;/P&gt;&lt;P&gt;if (Listbox A is locked show unlock button, else show lock button)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 12:56:28 GMT</pubDate>
    <dc:creator>hobanwashburne</dc:creator>
    <dc:date>2014-08-18T12:56:28Z</dc:date>
    <item>
      <title>Simple toggle button to lock selection</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695207#M1071166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know of an example where a button is used to Lock/unlock a selection in a particular list box? I imagine that I'll have to actually have two buttons (one to lock and one to unlock) and a "hide/show" variable depending on the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the condition I need to check against is: &lt;/P&gt;&lt;P&gt;if (Listbox A is locked show unlock button, else show lock button)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 12:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695207#M1071166</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2014-08-18T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple toggle button to lock selection</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695208#M1071167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use a single button and change the text based on the value of the variable something like:&lt;/P&gt;&lt;P&gt;=if(vLock = 1,'Unlock','Lock')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The action would be:&lt;/P&gt;&lt;P&gt;=if(vLock = 1,0,1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 13:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695208#M1071167</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-08-18T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Simple toggle button to lock selection</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695209#M1071168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Properties &amp;gt; Actions &amp;gt; Add &amp;gt; Unlock Field &amp;gt; Add Field&lt;/P&gt;&lt;P&gt;Click on Add Again &amp;gt; External &amp;gt; Set Variable &amp;gt; Add variable vLock and set it to 0&lt;/P&gt;&lt;P&gt;Add another button but select Unlock Field.&lt;/P&gt;&lt;P&gt;Click on Add Again &amp;gt; External &amp;gt; Set Variable &amp;gt; Add variable vLock and set it to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then on show hide add something like if(vLock = 1) on the one button and the other button if(vLock = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place these 2 buttons at the exact same location in your model before you set the conditional hide / show. This way you will never know its actually 2 different buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do what you want it to do.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 13:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-toggle-button-to-lock-selection/m-p/695209#M1071168</guid>
      <dc:creator />
      <dc:date>2014-08-18T13:45:19Z</dc:date>
    </item>
  </channel>
</rss>

