<?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 Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142399#M505586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome, but where is Jay's solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2009 04:24:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-27T04:24:12Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142395#M505582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need a help on macro.&lt;/P&gt;&lt;P&gt;I have two tabs in one report. I have selection boxes on both tabs. When I move from first tab to second tab, I need to clear the selection boxes.I did that using the below macro,&lt;/P&gt;&lt;P&gt;sub Clear&lt;BR /&gt;ActiveDocument.Fields("F1").clear&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;Now, when I move back to first tab, I need the same selection which I selected previously (prior to moving to second tab). could someone help me with the macro.&lt;/P&gt;&lt;P&gt;Ex: I clear the selection made on "F1", when I move to 2nd tab. I need the selection made on "F1" to be present, when moved to 1st tab.&lt;/P&gt;&lt;P&gt;Please see the attachment&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 01:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/142395#M505582</guid>
      <dc:creator />
      <dc:date>2009-04-27T01:57:42Z</dc:date>
    </item>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142396#M505583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal,&lt;/P&gt;&lt;P&gt;Using a public variable should do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Public Selection&lt;BR /&gt;&lt;BR /&gt;sub AwayFromTab1&lt;BR /&gt; set Selection = ActiveDocument.Fields("F1").GetSelectedValues&lt;BR /&gt; ActiveDocument.Fields("F1").clear&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sub BackToTab1&lt;BR /&gt; set f1 = ActiveDocument.Fields("F1")&lt;BR /&gt; f1.SelectValues Selection&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;I hope this helped you out.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 03:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/142396#M505583</guid>
      <dc:creator />
      <dc:date>2009-04-27T03:25:52Z</dc:date>
    </item>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142397#M505584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public selarr()&lt;/P&gt;&lt;P&gt;Public fldarr()&lt;/P&gt;&lt;P&gt;Public valcount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub LeaveTab&lt;/P&gt;&lt;P&gt;valcount=ActiveDocument.Fields("$Field").GetCardinal&lt;/P&gt;&lt;P&gt;set vals=ActiveDocument.Fields("$Field").GetPossibleValues&lt;/P&gt;&lt;P&gt;Redim selarr(valcount)&lt;/P&gt;&lt;P&gt;Redim fldarr(valcount)&lt;/P&gt;&lt;P&gt;for i=0 to valcount-1&lt;/P&gt;&lt;P&gt;fldarr(i)=vals.Item(i).text&lt;/P&gt;&lt;P&gt;set selarr(i)=ActiveDocument.GetField(vals.Item(i).text).GetSelectedValues&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;ActiveDocument.clearAll false&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ReturnToTab&lt;/P&gt;&lt;P&gt;for i=0 to valcount-1&lt;/P&gt;&lt;P&gt;ActiveDocument.GetField(fldarr(i)).SelectValues selarr(i)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 03:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/142397#M505584</guid>
      <dc:creator />
      <dc:date>2009-04-27T03:40:46Z</dc:date>
    </item>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142398#M505585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jay and Janseen. It worked as I expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/142398#M505585</guid>
      <dc:creator />
      <dc:date>2009-04-27T04:03:36Z</dc:date>
    </item>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142399#M505586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome, but where is Jay's solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/142399#M505586</guid>
      <dc:creator />
      <dc:date>2009-04-27T04:24:12Z</dc:date>
    </item>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/142400#M505587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's reposted now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 05:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/142400#M505587</guid>
      <dc:creator />
      <dc:date>2009-04-27T05:06:21Z</dc:date>
    </item>
  </channel>
</rss>

