<?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 Variable in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766703#M272396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my Load Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserAll:&lt;/P&gt;&lt;P&gt;LOAD distinct User&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Qlik\Audit_MM-QV01.log]&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vUsers= NoOfRows('UserAll');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FOR i = 0 to $(vUsers)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET vLogUsers$(i)=' &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my front end i created a variable &lt;STRONG&gt;&lt;EM&gt;vLogonUsers&lt;/EM&gt;&lt;/STRONG&gt; :- &lt;EM&gt;concat(User,',') &lt;/EM&gt;this list All the users separated by a comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now on the second part i want to create variables vLogUsers$(i)&lt;/P&gt;&lt;P&gt;itried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SET vLogUsers$(i)=' peek(User,$(i),UserAll&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG&gt;');&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;not working&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG style="color: #000000;"&gt;please if there could be a way to do this in the load script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;in&amp;nbsp; front end i can manually have &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;vLogUser1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; :-&lt;/SPAN&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; subfield(vLogonUsers,','1)&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; as so on &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but&amp;nbsp; i want o do it in the load script since the number of users can grow periodically &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; thanx in advance &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 12:55:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-09T12:55:03Z</dc:date>
    <item>
      <title>Variable in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766703#M272396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my Load Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserAll:&lt;/P&gt;&lt;P&gt;LOAD distinct User&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Qlik\Audit_MM-QV01.log]&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vUsers= NoOfRows('UserAll');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FOR i = 0 to $(vUsers)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET vLogUsers$(i)=' &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my front end i created a variable &lt;STRONG&gt;&lt;EM&gt;vLogonUsers&lt;/EM&gt;&lt;/STRONG&gt; :- &lt;EM&gt;concat(User,',') &lt;/EM&gt;this list All the users separated by a comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now on the second part i want to create variables vLogUsers$(i)&lt;/P&gt;&lt;P&gt;itried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SET vLogUsers$(i)=' peek(User,$(i),UserAll&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG&gt;');&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;not working&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG style="color: #000000;"&gt;please if there could be a way to do this in the load script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;in&amp;nbsp; front end i can manually have &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;vLogUser1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; :-&lt;/SPAN&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; subfield(vLogonUsers,','1)&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; as so on &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but&amp;nbsp; i want o do it in the load script since the number of users can grow periodically &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; thanx in advance &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 12:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766703#M272396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766704#M272397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the red SET statement for awkwardly positioned quotes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax specification requires you to quote both the field name as well as the table name. But I'm not entirely sure what your shortcut is trying to accomplish here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766704#M272397</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-09T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766705#M272398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i got it my syntax had wrong quotes &lt;/P&gt;&lt;P&gt;this worked for me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; let vLogUsersNames$(i)= peek('User',$(i),'UserAll') ; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766705#M272398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T13:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766706#M272399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck, Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Script/m-p/766706#M272399</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-09T13:32:34Z</dc:date>
    </item>
  </channel>
</rss>

