<?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 ActiveDocument.GetCurrentSelections -&amp;gt; Selections converted to &amp;quot;7 of 34&amp;quot; when I select more... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetCurrentSelections-gt-Selections-converted-to/m-p/187244#M51004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, this works for me. Instead of using GetCurrentSelections I use GetSheetObject and grab my list box. Here's the code snippet I adapted to fit this need.&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;set&lt;/B&gt; LB = ActiveDocument.GetSheetObject("LB02")&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;for&lt;/B&gt; i = &lt;B&gt;lbound&lt;/B&gt;(boxvalues) to &lt;B&gt;ubound&lt;/B&gt;(boxvalues)&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;msgbox&lt;/B&gt;(boxvalues(i))&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;next&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;***Note that the above also only enumerates through selected list box members. I was not expecting this behaviour but am pleasantly surprised because that is exactly what I was trying to achieve.&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&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;&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&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, 19 Mar 2010 20:23:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-19T20:23:59Z</dc:date>
    <item>
      <title>ActiveDocument.GetCurrentSelections -&gt; Selections converted to "7 of 34" when I select more...</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetCurrentSelections-gt-Selections-converted-to/m-p/187243#M51003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;I thought I was getting a string of selections but at some point, my selection get converted into a string something like "7 of 34" instead of the list of selections. Can I overide this? There must be some string limit the the object does not give you all the selections...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;set&lt;/STRONG&gt; x = ActiveDocument.GetCurrentSelections&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;s = x.Selections&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;v = x.VarId&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt; i = &lt;STRONG&gt;lbound&lt;/STRONG&gt;(s) to &lt;STRONG&gt;ubound&lt;/STRONG&gt;(s)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;msgbox&lt;/STRONG&gt; v(i)&amp;amp;" = "&amp;amp;s(i)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt; &lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 18:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetCurrentSelections-gt-Selections-converted-to/m-p/187243#M51003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-19T18:54:03Z</dc:date>
    </item>
    <item>
      <title>ActiveDocument.GetCurrentSelections -&gt; Selections converted to "7 of 34" when I select more...</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-GetCurrentSelections-gt-Selections-converted-to/m-p/187244#M51004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, this works for me. Instead of using GetCurrentSelections I use GetSheetObject and grab my list box. Here's the code snippet I adapted to fit this need.&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;set&lt;/B&gt; LB = ActiveDocument.GetSheetObject("LB02")&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;for&lt;/B&gt; i = &lt;B&gt;lbound&lt;/B&gt;(boxvalues) to &lt;B&gt;ubound&lt;/B&gt;(boxvalues)&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;msgbox&lt;/B&gt;(boxvalues(i))&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;next&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;***Note that the above also only enumerates through selected list box members. I was not expecting this behaviour but am pleasantly surprised because that is exactly what I was trying to achieve.&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&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;&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&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, 19 Mar 2010 20:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-GetCurrentSelections-gt-Selections-converted-to/m-p/187244#M51004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-19T20:23:59Z</dc:date>
    </item>
  </channel>
</rss>

