<?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: String Array in Edit Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449623#M167792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Instead of an array, can you concatenate the values in a single value and use Eduardo's approach? &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 14:36:00 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2013-02-19T14:36:00Z</dc:date>
    <item>
      <title>String Array in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449619#M167788</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;I want to create a string array in Edit Script of the Qlikview document and loop through the array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Arr[2] = {A,b};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is throwing a syntax error. Can anyone help me on this?&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;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.Santosh Kumari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 12:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449619#M167788</guid>
      <dc:creator />
      <dc:date>2013-02-19T12:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: String Array in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449620#M167789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can concatenate their words and by a separate identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET array = "abcd, 123, xyz";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To scroll through your array, you can use functions character subfield:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield ('$ (array)', ',', Rowno ()) AS STR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate (3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Where &lt;STRONG&gt;','&lt;/STRONG&gt; as the separator and definitions of your array and &lt;STRONG&gt;Rowno()&lt;/STRONG&gt; refers to the position of your text to go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449620#M167789</guid>
      <dc:creator />
      <dc:date>2013-02-19T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: String Array in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449621#M167790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I suggest you create your array in a table then, you can loop the rows: &lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let x = NoOfRows('Table'); // Get number of itens in "Array"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Loop Table Rows&lt;/P&gt;&lt;P&gt;For i = 0 to x-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;let content = peek('F1',i,'Table') ;//Get the n-th item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trace $(content); //It can be used! (in this case, it is just printed in the script log)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table; // optional&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449621#M167790</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2013-02-19T13:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: String Array in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449622#M167791</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;Actually i am using an EDX trigger, and i am passing a string array from the API to the Qlikview EditScript where i want to use the string array.&lt;/P&gt;&lt;P&gt;For Example i have the string array as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arr[0] = 1;&lt;/P&gt;&lt;P&gt;Arr[1]=123;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i pass the array as say "Arr".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to access the above Arr in my edit script. When i just use Arr, i am able to acess the first value i.e 1, but i am not sure of how to use the 123 value in the list. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh Kumari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449622#M167791</guid>
      <dc:creator />
      <dc:date>2013-02-19T13:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: String Array in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449623#M167792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Instead of an array, can you concatenate the values in a single value and use Eduardo's approach? &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449623#M167792</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2013-02-19T14:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: String Array in Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449624#M167793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to tell you that I was also looking for a "String Array in Edit Script" and your suggestion was exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;BR /&gt;Ariel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 16:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Array-in-Edit-Script/m-p/449624#M167793</guid>
      <dc:creator>arieidel</dc:creator>
      <dc:date>2016-10-11T16:54:15Z</dc:date>
    </item>
  </channel>
</rss>

