<?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: Clear all Selections except few fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261402#M583528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;even though you already got your answer i think there's a room for one more answer,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;for me i needed 3 more things:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- at least one selected value&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- no impact from space in the value&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- no effect what so ever by 'Clear All' event&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;i also wanted a dimension with only one selected value but without using the qlikview special feature because it destroys the server bookmarks, you can remove a field with 'Always one...'&amp;nbsp; but when adding one the old bookmarks are missing it so they stop work, this is super annoying so i solved that too (:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;you need to look in the 'File -&amp;gt; Edit Script' for comments, and also in the 'Tools -&amp;gt; Edit Module...'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if your using qlikview server to show data you can see that pressing the clear button keeps everything yet something is not working right, that is because there's an issue with using the Action: Actions -&amp;gt; Add -&amp;gt; Selection -&amp;gt; Clear All, it clears all fields without running the OnSelect event (bug?), this can be solved by doing it using macro, you can see the attached file for know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if for some reason you need to also unlock all fields ( maybe you hide all tabs and did button based navigation and you lock some dimension on each page) then change the macro function to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ClearAllMacro&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.UnlockAll true&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.ClearAll true&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 12:28:07 GMT</pubDate>
    <dc:creator>yakir_manor</dc:creator>
    <dc:date>2015-07-02T12:28:07Z</dc:date>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261393#M583519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever I navigate from one sheet to another I need to clear all selections except few fields like for Ex:&amp;nbsp; My selections for Country,Sate,City should stay across the sheets and any other selections should get cleared. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Sheet Activate we can Trigger&amp;nbsp; an event to clear other fields except one specific field. This works for one field. How do i get it to work for multiple fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 18:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261393#M583519</guid>
      <dc:creator />
      <dc:date>2011-10-19T18:42:05Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261394#M583520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would locking the fields help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 18:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261394#M583520</guid>
      <dc:creator />
      <dc:date>2011-10-19T18:44:04Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261395#M583521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use bookmarks instead as in &lt;A _jive_internal="true" href="https://community.qlik.com/message/102192#102192"&gt;this thread&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 18:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261395#M583521</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-19T18:45:08Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261396#M583522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to allow user to change the selections of the fields(Country,Sate,City) in other sheets. If i lock these fields user can only select them by unlocking&amp;nbsp; them. I dont want user to go through another step of unlocking.&lt;/P&gt;&lt;P&gt;I think one way to achieve this is on leave sheets event --&amp;gt;&amp;nbsp; trigger actions in the following order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. lock Country&lt;/P&gt;&lt;P&gt;2.lock state&lt;/P&gt;&lt;P&gt;3. lock city&lt;/P&gt;&lt;P&gt;4. clear all&lt;/P&gt;&lt;P&gt;5. unlock Country&lt;/P&gt;&lt;P&gt;6. Unlock State&lt;/P&gt;&lt;P&gt;8. Unlock City&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of triggering so many actions, can i just use one action like below&lt;/P&gt;&lt;P&gt;1. Clear Other fields&amp;nbsp; ( can i specify multiple fields in this action)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 19:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261396#M583522</guid>
      <dc:creator />
      <dc:date>2011-10-19T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261397#M583523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; Miguel. I will try the book marks idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 19:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261397#M583523</guid>
      <dc:creator />
      <dc:date>2011-10-19T19:28:23Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261398#M583524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your idea is good..&amp;nbsp; But after I make selections in the first sheet for Country, state and City.. i would like to have these selections remain in other sheets and clear any other selections.&amp;nbsp; In your example atleast for the first time, we need to make selections in all sheets as it clears all selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also If i make changes to selections for Country, state and City fields i want them to stay across all sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 19:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261398#M583524</guid>
      <dc:creator />
      <dc:date>2011-10-19T19:59:33Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261399#M583525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Are the required selections always the same? If so, you could set up a trigger that fires when the selections are cleared. Set up actions in the trigger that re-select the required selections or re-applies a standard bookmark. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 20:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261399#M583525</guid>
      <dc:creator />
      <dc:date>2011-10-19T20:32:40Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261400#M583526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was looking for something similar myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On active sheet I set 3 triggers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select in field&amp;nbsp; &amp;lt;Year&amp;gt;&amp;nbsp;&amp;nbsp; with the expression: =GetFieldSelections(Year)&lt;/P&gt;&lt;P&gt;Select in&amp;nbsp; field ....&lt;/P&gt;&lt;P&gt;Select in field ....&lt;/P&gt;&lt;P&gt;for each dimension I want to keep selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On exiting this sheet I wanted to keep the selections made with the exception of 1 (flag).&lt;/P&gt;&lt;P&gt;I solved this by:&lt;/P&gt;&lt;P&gt;Select in field&amp;nbsp; &amp;lt;flag&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with the expression left blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is your solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 06:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261400#M583526</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-10-20T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261401#M583527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use fewer actions 'on activate' only by:&lt;/P&gt;&lt;P&gt;1. lock Country&lt;/P&gt;&lt;P&gt;2. lock state&lt;/P&gt;&lt;P&gt;3. lock city&lt;/P&gt;&lt;P&gt;4. clear all&lt;/P&gt;&lt;P&gt;5. unlock all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would allow changing the selections on each sheet but keeping them when changing sheets (and clearing the others)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dilyana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261401#M583527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-20T15:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clear all Selections except few fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261402#M583528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;even though you already got your answer i think there's a room for one more answer,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;for me i needed 3 more things:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- at least one selected value&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- no impact from space in the value&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- no effect what so ever by 'Clear All' event&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;i also wanted a dimension with only one selected value but without using the qlikview special feature because it destroys the server bookmarks, you can remove a field with 'Always one...'&amp;nbsp; but when adding one the old bookmarks are missing it so they stop work, this is super annoying so i solved that too (:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;you need to look in the 'File -&amp;gt; Edit Script' for comments, and also in the 'Tools -&amp;gt; Edit Module...'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if your using qlikview server to show data you can see that pressing the clear button keeps everything yet something is not working right, that is because there's an issue with using the Action: Actions -&amp;gt; Add -&amp;gt; Selection -&amp;gt; Clear All, it clears all fields without running the OnSelect event (bug?), this can be solved by doing it using macro, you can see the attached file for know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if for some reason you need to also unlock all fields ( maybe you hide all tabs and did button based navigation and you lock some dimension on each page) then change the macro function to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ClearAllMacro&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.UnlockAll true&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.ClearAll true&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 12:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-all-Selections-except-few-fields/m-p/261402#M583528</guid>
      <dc:creator>yakir_manor</dc:creator>
      <dc:date>2015-07-02T12:28:07Z</dc:date>
    </item>
  </channel>
</rss>

