<?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-select list box selections after clear Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228470#M80496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your original example where you wanted to retain the selections for a single field, you could have used:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Class").ClearAllButThis&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 10:27:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-21T10:27:17Z</dc:date>
    <item>
      <title>Re-select list box selections after clear Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228467#M80493</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;Basically what I am trying to do is select values from a list box that were selected before I do a clear without having to manually re-select them&lt;/P&gt;&lt;P&gt;I have tried the below code:&lt;/P&gt;&lt;P&gt;yearSelection = ActiveDocument.Fields("Year").getselectedValues&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Year").Fields.Clear&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Year").Select yearSelection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 23:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228467#M80493</guid>
      <dc:creator />
      <dc:date>2010-07-20T23:01:35Z</dc:date>
    </item>
    <item>
      <title>Re-select list box selections after clear Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228468#M80494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way is to save a bookmark as soon as clear button is triggered and then after clear you select that bookmark and delete the templorary bookmark.&lt;/P&gt;&lt;P&gt;There is no trigger on "clear" though, but I remember I replied a solution to one of the forum questions here with a workaround on how to do a "clear trigger". Just search for clear trigger and you should find it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 23:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228468#M80494</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-07-20T23:31:14Z</dc:date>
    </item>
    <item>
      <title>Re-select list box selections after clear Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228469#M80495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rakesh&lt;/P&gt;&lt;P&gt;For anyone else who would like to know this is the code i have used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.CreateDocBookmark true, "Current Selections"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Day").Clear&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Year").Clear&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Month").Clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.RecallDocBookmark "Current Selections"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearDocBookmarks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 00:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228469#M80495</guid>
      <dc:creator />
      <dc:date>2010-07-21T00:09:45Z</dc:date>
    </item>
    <item>
      <title>Re-select list box selections after clear Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228470#M80496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your original example where you wanted to retain the selections for a single field, you could have used:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Class").ClearAllButThis&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 10:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-select-list-box-selections-after-clear-Macro/m-p/228470#M80496</guid>
      <dc:creator />
      <dc:date>2010-07-21T10:27:17Z</dc:date>
    </item>
  </channel>
</rss>

