<?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 Setting a variable with an array of values taken by a pivot table though a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168481#M39619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload your QV app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 17:13:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-13T17:13:05Z</dc:date>
    <item>
      <title>Setting a variable with an array of values taken by a pivot table though a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168480#M39618</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;I'm trying to set a variable into a qlikview document with a list of values taken from a column of a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;sub GetContattiInviti&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;set table = ActiveDocument.GetSheetObject("CH146")&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;'set field = ActiveDocument.Fields("Con_cod_contatto")&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;'set arrayValori = field.GetNoValues&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;dim arrayValori: arrayValori=(table.GetRowCount)&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;cont = 0&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;for RowIter = 1 to table.GetRowCount-1&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;set cell = table.GetCell(RowIter,2)&lt;/H4&gt;&lt;H4&gt;if cell.Text &amp;lt;&amp;gt; "0" then arrayValori(cont).Text = cell.Text&lt;/H4&gt;&lt;H4&gt;cont = cont + 1&lt;/H4&gt;&lt;H4&gt;next&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;&lt;/H4&gt;&lt;H4&gt;set contattiPriorita = ActiveDocument.Variables("Contatti_Priorita")&lt;/H4&gt;&lt;H4&gt;contattiPriorita.SetContent arrayValori,true&lt;/H4&gt;&lt;H4&gt;&lt;BR /&gt;end sub&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instruction&lt;/P&gt;&lt;H4&gt;arrayValori(cont).Text = cell.Text&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives me Type Mismatch error.&lt;/P&gt;&lt;P&gt;I tried a lot of things without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 17:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168480#M39618</guid>
      <dc:creator />
      <dc:date>2011-01-13T17:09:58Z</dc:date>
    </item>
    <item>
      <title>Setting a variable with an array of values taken by a pivot table though a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168481#M39619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload your QV app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 17:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168481#M39619</guid>
      <dc:creator />
      <dc:date>2011-01-13T17:13:05Z</dc:date>
    </item>
    <item>
      <title>Setting a variable with an array of values taken by a pivot table though a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168482#M39620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alecatta - did you find a solution for this? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 11:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-with-an-array-of-values-taken-by-a-pivot/m-p/168482#M39620</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-02-17T11:42:01Z</dc:date>
    </item>
  </channel>
</rss>

