<?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: Macro to rturn selected values in list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606983#M1099486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check if there are some selection with another function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 19:24:22 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2014-04-22T19:24:22Z</dc:date>
    <item>
      <title>Macro to return selected values in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606980#M1099483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox with user selections. I would like to be able to return a string of the selected values from the listbox.&amp;nbsp; GetSelectedValues returns something other than a string.&amp;nbsp; Does anyone know if this is possible to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 18:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606980#M1099483</guid>
      <dc:creator />
      <dc:date>2014-04-22T18:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to rturn selected values in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606981#M1099484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can easily get all &lt;STRONG&gt;possible&lt;/STRONG&gt; values using =Concat(distinct YourField, ', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 19:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606981#M1099484</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-22T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to rturn selected values in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606982#M1099485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the rapod reply. I really don't need possible values unless those are the values selected by the user. The SQL that I want to use would be like "update Accounts Set active = 1 where AccountNumber in (&lt;EM&gt;&lt;STRONG&gt;this is where the selcted listbox values go&lt;/STRONG&gt;&lt;/EM&gt;)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 19:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606982#M1099485</guid>
      <dc:creator />
      <dc:date>2014-04-22T19:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to rturn selected values in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606983#M1099486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check if there are some selection with another function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 19:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606983#M1099486</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-22T19:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to return selected values in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606984#M1099488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks whiteline. I solved my problem. I created a hidden sheet. On the hidden sheet I put a text object. The text is =CHR(40)&amp;amp;CHR(39)&amp;amp;getfieldselections(AccountNo,CHR(39)&amp;amp;','&amp;amp;CHR(13)&amp;amp;CHR(39),2000)&amp;amp;CHR(39)&amp;amp;CHR(41)In the macro I process the string like this:&lt;/P&gt;&lt;P&gt;Set TX = ActiveDocument.getSheetObject("TX01")&lt;/P&gt;&lt;P&gt;Then i run a SQL Statement through an ADODB connection&lt;/P&gt;&lt;P&gt;ADODBConn.Execute(Update [databasename].[dbo],[tablename] set [fieldname] = 1 where [AccountNo] in "&amp;amp;TX.GetText)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 12:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606984#M1099488</guid>
      <dc:creator />
      <dc:date>2014-04-23T12:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to return selected values in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606985#M1099490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So its limited with the 2000.&lt;/P&gt;&lt;P&gt;I meant that you could use getselectedcount() to check if there is any selection and then use concat() to build the same list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 17:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-return-selected-values-in-list-box/m-p/606985#M1099490</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-23T17:59:11Z</dc:date>
    </item>
  </channel>
</rss>

