<?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 Restrict button depending on current selection . in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408959#M152061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to restrict a button depending on current selection .&lt;BR /&gt;Lets say I've 50 fields and I want the button to be displayed only if I've made a selection on&amp;nbsp; two specific columns ,eg A &amp;amp; B.&lt;/P&gt;&lt;P&gt;So if I have a selection on A or B but I also select any other field C or D the button should be greyed out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the experts are able to help me out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 11:23:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-05T11:23:48Z</dc:date>
    <item>
      <title>Restrict button depending on current selection .</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408959#M152061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to restrict a button depending on current selection .&lt;BR /&gt;Lets say I've 50 fields and I want the button to be displayed only if I've made a selection on&amp;nbsp; two specific columns ,eg A &amp;amp; B.&lt;/P&gt;&lt;P&gt;So if I have a selection on A or B but I also select any other field C or D the button should be greyed out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the experts are able to help me out .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 11:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408959#M152061</guid>
      <dc:creator />
      <dc:date>2012-12-05T11:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict button depending on current selection .</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408960#M152062</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;Have you already try the 'enable condition' on general tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put some expression there to activate or deactivate your button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 11:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408960#M152062</guid>
      <dc:creator />
      <dc:date>2012-12-05T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict button depending on current selection .</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408961#M152063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have to put all the values in the 'Enable Condition'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A='1' OR A='2' OR B='3'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 11:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408961#M152063</guid>
      <dc:creator />
      <dc:date>2012-12-05T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict button depending on current selection .</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408962#M152064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;BR /&gt;Thanks for your reply .&lt;/P&gt;&lt;P&gt;I'm already using the below in enable condition : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WildMatch(GetCurrentSelections(),'*A*','*B*') &amp;lt;&amp;gt;0 &lt;BR /&gt; and &lt;BR /&gt;IsNull(WildMatch(GetCurrentSelections(),'*A*','*B*')) =0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot point out the unwanted ones as they could run into 40 -50 fields .&lt;BR /&gt;Is there any other solution that you could think off ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 04:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408962#M152064</guid>
      <dc:creator />
      <dc:date>2012-12-06T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict button depending on current selection .</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408963#M152065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount(A) &amp;gt; 0 AND GetSelectedCount(B), 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you can also try using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;GetFieldSelections() instead of GetSelectedCount()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 09:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408963#M152065</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-12-06T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict button depending on current selection .</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408964#M152066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It's close but doesnt help .&lt;BR /&gt;Here your code needs a selection to be made on both A &amp;amp; B for the button to be enabled .&lt;BR /&gt;I want button to be enabled for any of the below selections :&lt;BR /&gt;1)A&lt;BR /&gt;2)B&lt;BR /&gt;3)A&amp;amp;B&lt;/P&gt;&lt;P&gt;&amp;amp; it should be disabled if I select A &amp;amp; C&amp;nbsp; or A,B,C like that .&lt;BR /&gt;This C which I'm talking about could be&amp;nbsp; any field from the remaing set of 50 other fields .&lt;BR /&gt;So I can't hardcode them as its a dirty fix .&lt;/P&gt;&lt;P&gt;Hope you get my point and there is a solution .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-button-depending-on-current-selection/m-p/408964#M152066</guid>
      <dc:creator />
      <dc:date>2012-12-06T10:06:35Z</dc:date>
    </item>
  </channel>
</rss>

