<?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 show selected values (with macro?) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146085#M24692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well for some reason I can't upload the file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway the data is look like that:&lt;/P&gt;&lt;P&gt;num,ver&lt;/P&gt;&lt;P&gt;15 hhq&lt;BR /&gt;20 ssd&lt;BR /&gt;25 scd&lt;BR /&gt;30 fbi&lt;BR /&gt;35 cai&lt;BR /&gt;40 btg&lt;BR /&gt;45 bgu&lt;BR /&gt;50 coi&lt;BR /&gt;55 gol&lt;BR /&gt;60 sil&lt;/P&gt;&lt;P&gt;thanx again.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2009 22:19:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-05T22:19:20Z</dc:date>
    <item>
      <title>show selected values (with macro?)</title>
      <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146084#M24691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have quite a simple question here.&lt;/P&gt;&lt;P&gt;(see attach file)&lt;/P&gt;&lt;P&gt;All I want to do in when selecting any data in the field "ver"----&amp;gt; the select&lt;/P&gt;&lt;P&gt;value will apper in the big red text box and will change with any new selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do that:&lt;/P&gt;&lt;P&gt;I created a variable named him show,and built that macro:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Sub&lt;/B&gt; show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;show = ActiveDocument.fields("ver").GetSelectedValues&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;end&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;sub&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;well....It doesn't working guys... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx &lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 22:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146084#M24691</guid>
      <dc:creator />
      <dc:date>2009-06-05T22:10:54Z</dc:date>
    </item>
    <item>
      <title>show selected values (with macro?)</title>
      <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146085#M24692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well for some reason I can't upload the file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway the data is look like that:&lt;/P&gt;&lt;P&gt;num,ver&lt;/P&gt;&lt;P&gt;15 hhq&lt;BR /&gt;20 ssd&lt;BR /&gt;25 scd&lt;BR /&gt;30 fbi&lt;BR /&gt;35 cai&lt;BR /&gt;40 btg&lt;BR /&gt;45 bgu&lt;BR /&gt;50 coi&lt;BR /&gt;55 gol&lt;BR /&gt;60 sil&lt;/P&gt;&lt;P&gt;thanx again.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 22:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146085#M24692</guid>
      <dc:creator />
      <dc:date>2009-06-05T22:19:20Z</dc:date>
    </item>
    <item>
      <title>show selected values (with macro?)</title>
      <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146086#M24693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a macro, you can use: GetFieldSelections(ver)&lt;/P&gt;&lt;P&gt;That will get you a comma separated list of the items that are selected. Put that (start with an equals sign) in your text box.&lt;/P&gt;&lt;P&gt;It is possible with a macro, but this method is much easier.&lt;/P&gt;&lt;P&gt;The reason your macro doesn't work is because you are not setting your Show variable in your macro. You're creating an object named Show which is like an array of selected values. This is completely unrelated to your Show variable (other than sharing the same name). In order to populate your Show variable with the Selections in your Show Object, you would need to loop through each Item and contatenate each Selection with all of the previous Selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 22:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146086#M24693</guid>
      <dc:creator />
      <dc:date>2009-06-05T22:23:24Z</dc:date>
    </item>
    <item>
      <title>show selected values (with macro?)</title>
      <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146087#M24694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx alot.&lt;/P&gt;&lt;P&gt;indeed a simple solution &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;Can you post yours with the macro? I'm not sure I've understand it..&lt;/P&gt;&lt;P&gt;I've done this to ignore the comma :&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;if(isnull(GetFieldSelections(ver)),'',GetFieldSelections(ver))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2009 00:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146087#M24694</guid>
      <dc:creator />
      <dc:date>2009-06-06T00:18:55Z</dc:date>
    </item>
    <item>
      <title>show selected values (with macro?)</title>
      <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146088#M24695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put together a quick sample of what the macro would look like. Hopefully, this clears up what I was talking about in regards to the Show Object vs. the Show Variable. In my sample, I have renamed the Object to ObjShow and the Variable to vShow.&lt;/P&gt;&lt;P&gt;Here's the macro:&lt;/P&gt;&lt;P&gt;Sub ShowVer&lt;/P&gt;&lt;P&gt;set ObjShow = ActiveDocument.Fields("ver").GetSelectedValues&lt;BR /&gt; ' This is the Object you were creating&lt;BR /&gt;&lt;BR /&gt; set var = ActiveDocument.Variables("vShow")&lt;BR /&gt; ' This would be a reference to your variable&lt;/P&gt;&lt;P&gt;var.SetContent "", true ' Clear Variable&lt;BR /&gt;&lt;BR /&gt; for i = 0 to ObjShow.Count - 1&lt;BR /&gt; varHolder = varHolder &amp;amp; ObjShow.Item(i).text &amp;amp; ", "&lt;BR /&gt; next&lt;BR /&gt;&lt;BR /&gt; ' This removes the extra comma&lt;BR /&gt; if Len(varHolder) &amp;gt; 2 then&lt;BR /&gt; varHolder = Left(varHolder, Len(varHolder) - 2)&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; ' Set the variable to the concatenated list of selections&lt;BR /&gt; var.SetContent varHolder, true&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2009 02:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146088#M24695</guid>
      <dc:creator />
      <dc:date>2009-06-06T02:49:27Z</dc:date>
    </item>
    <item>
      <title>show selected values (with macro?)</title>
      <link>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146089#M24696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I certainly learn something new here.&lt;/P&gt;&lt;P&gt;great,its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2009 16:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-selected-values-with-macro/m-p/146089#M24696</guid>
      <dc:creator />
      <dc:date>2009-06-07T16:32:58Z</dc:date>
    </item>
  </channel>
</rss>

