<?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 Help!! How to send array values to tablebox? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460058#M1157935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;BR /&gt;i have an array in vbs macro&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13591868971098782" jivemacro_uid="_13591868971098782"&gt;&lt;P&gt;Sub CreateArray&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim MyArray() ' dynamic array&lt;/P&gt;&lt;P&gt;&amp;nbsp; LengthOfArray = 3 ' Length may differ from time to time&lt;/P&gt;&lt;P&gt;&amp;nbsp; Redim MyArray(LengthOfArray)&lt;/P&gt;&lt;P&gt;&amp;nbsp; For i = 0 to LengthOfArray - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyArray(i) = 2*i + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; ' check array values in message boxes&lt;/P&gt;&lt;P&gt;&amp;nbsp; For i = 0 to LengthOfArray - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox MyArray(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;How can i create a tablebox and send values of array in the created tablebox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2013 04:58:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-26T04:58:20Z</dc:date>
    <item>
      <title>Help!! How to send array values to tablebox?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460058#M1157935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;BR /&gt;i have an array in vbs macro&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13591868971098782" jivemacro_uid="_13591868971098782"&gt;&lt;P&gt;Sub CreateArray&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim MyArray() ' dynamic array&lt;/P&gt;&lt;P&gt;&amp;nbsp; LengthOfArray = 3 ' Length may differ from time to time&lt;/P&gt;&lt;P&gt;&amp;nbsp; Redim MyArray(LengthOfArray)&lt;/P&gt;&lt;P&gt;&amp;nbsp; For i = 0 to LengthOfArray - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyArray(i) = 2*i + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; ' check array values in message boxes&lt;/P&gt;&lt;P&gt;&amp;nbsp; For i = 0 to LengthOfArray - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox MyArray(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;How can i create a tablebox and send values of array in the created tablebox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 04:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460058#M1157935</guid>
      <dc:creator />
      <dc:date>2013-01-26T04:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help!! How to send array values to tablebox?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460059#M1157936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short answer: you can't &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long answer: You can, but.... &lt;/P&gt;&lt;P&gt;There is &lt;STRONG&gt;no&lt;/STRONG&gt; way to directly assign an array to a table box. Qlikview is not a spreadsheet. A table box can only display data from the internal database. The internal database is created by the load script during (re)load. You first have to create a table in the script for your data. If you have QV 11 you can use Dynamic Update to add/update/delete data in the internal database. So if you create a table in the script you can use dynamic update to add your array data to the table. Then you have something that can be shown in the tablebox. See &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2640"&gt;this document&lt;/A&gt; for the com api details for creating a table box and using the activedocument.dynamicupdatecommand method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 10:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460059#M1157936</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-26T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help!! How to send array values to tablebox?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460060#M1157937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Gysbert&lt;BR /&gt;i've made it using *.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe my experience will be helpful to somebody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macro is:&lt;BR /&gt;Sub WriteToCSV&lt;BR /&gt;Dim objFSO, file, str&lt;BR /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;Set file = objFSO.CreateTextFile("MyFile_01.csv")&lt;BR /&gt;Dim&amp;nbsp; BufArray()&lt;BR /&gt;LenBufAr = 10&lt;BR /&gt;Redim BufArray(LenBufAr)&lt;BR /&gt;BufArray(0) = "NULL"&lt;BR /&gt;file.writeline BufArray(0)&lt;BR /&gt;BufArray(1) = "NULL"&lt;BR /&gt;file.writeline BufArray(1)&lt;BR /&gt;BufArray(2) = "NULL"&lt;BR /&gt;file.writeline BufArray(2)&lt;/P&gt;&lt;P&gt;for i = 3 to LenBufAr-1&lt;BR /&gt;'BufArray(i) = replace((i*i)/10,",",".")&lt;BR /&gt;BufArray(i) = replace(10*sqr(i),",",".") ' replace comma with point&lt;BR /&gt;file.writeline BufArray(i)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;'for i = 0 to LenBufAr-1&lt;BR /&gt;'MsgBox BufArray(i)&lt;BR /&gt;'Next&lt;BR /&gt;MsgBox "Ok"&lt;BR /&gt;End Sub&lt;BR /&gt;'------------------------------&lt;BR /&gt;sub Reload&lt;BR /&gt;set varCurrentQvw = ActiveDocument&lt;BR /&gt;varCurrentQvw.PartialReload&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reloading script is:&lt;BR /&gt;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='M/D/YYYY';&lt;BR /&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data0:&lt;BR /&gt;LOAD &lt;BR /&gt;&amp;nbsp; RowNo() AS Hdr_01,&lt;BR /&gt;&amp;nbsp; @1 as @1_01&lt;BR /&gt;FROM&lt;BR /&gt;[MyFile.csv]&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Replace LOAD &lt;BR /&gt;&amp;nbsp; RowNo() AS Hdr,&lt;BR /&gt;&amp;nbsp; @1 &lt;BR /&gt;FROM&lt;BR /&gt;[MyFile_01.csv]&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;so to reload only data generated by the script used "Replace" in the script&lt;BR /&gt;to avoid incorrectness when reading from MyFile_01.csv we replaced comma with point in macro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 12:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-How-to-send-array-values-to-tablebox/m-p/460060#M1157937</guid>
      <dc:creator />
      <dc:date>2013-01-26T12:16:25Z</dc:date>
    </item>
  </channel>
</rss>

