<?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 Generate variables from an Excel file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840217#M295275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in principle I know how to generate variables from an Excel file.&lt;/P&gt;&lt;P&gt;In this instance, what I have to do is generate variables in the script that will be filled with a value only on the GUI, once a selection has been made on a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually, I have to type &amp;gt;&amp;gt; SET [varname] = = [fieldname] &amp;lt;&amp;lt; =&amp;gt; that way, the variable will be filled on the GUI once the user has made a selection on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; What would have to be the syntax for this in a loop when I want to parse my Excel_file row by row and generate that statement?&lt;/P&gt;&lt;P&gt;I can't seem to get it right.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 08:24:14 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-05-12T08:24:14Z</dc:date>
    <item>
      <title>Generate variables from an Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840217#M295275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in principle I know how to generate variables from an Excel file.&lt;/P&gt;&lt;P&gt;In this instance, what I have to do is generate variables in the script that will be filled with a value only on the GUI, once a selection has been made on a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually, I have to type &amp;gt;&amp;gt; SET [varname] = = [fieldname] &amp;lt;&amp;lt; =&amp;gt; that way, the variable will be filled on the GUI once the user has made a selection on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; What would have to be the syntax for this in a loop when I want to parse my Excel_file row by row and generate that statement?&lt;/P&gt;&lt;P&gt;I can't seem to get it right.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 08:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840217#M295275</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-12T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Generate variables from an Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840218#M295276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I did it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just needed another line or two inside the loop as I couldn't seem to be able to do it in one go.&lt;/P&gt;&lt;P&gt;Now it is all dynamic - well, the variables anyway - they get created in the script, but will be filled with a value based on a selection by the user.&lt;/P&gt;&lt;P&gt;This is solved then.&lt;/P&gt;&lt;P&gt;The code now looks like this (based on an Excel file with the fields &amp;gt; Originalname &amp;lt; (the original fieldname), &amp;gt; Kurzname &amp;lt; (the fieldname without blanks).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; FOR &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Berechtigungen_pre')&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_VarName&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'edit_' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;PEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Kurzname', &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'Berechtigungen_pre');&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_VarValue&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(91) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;PEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Originalname', &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'Berechtigungen_pre') &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(93);&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_statement_pre&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '$(v_VarName)' &amp;amp; ' = = ' &amp;amp; '$(v_VarValue)' &amp;amp; ';';&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_statement&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'SET ' &amp;amp; '$(v_statement_pre)';&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v_statement)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 09:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840218#M295276</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-12T09:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generate variables from an Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840219#M295277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you mean something like this: &lt;A href="https://community.qlik.com/message/551707"&gt;Re: How does this code work?Creating variables using loop&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840219#M295277</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-12T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Generate variables from an Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840220#M295278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I do. This is actually solved already - my post is still being moderated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; The admins should use some kind of logic to not pick posts which mark a thread as closed for moderation if they cannot do it any faster ...&lt;/P&gt;&lt;P&gt;Only, that code generates fixed variables with exactly one value that is fixed in the script.&lt;/P&gt;&lt;P&gt;I needed variables to be generated in the script, but filled with values only on the GUI, when the user has made a selection on a field - they are to display the exact contents of a field, only with the possibility of editing it, given the logged-on user has the privileges of editing on this field.&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-variables-from-an-Excel-file/m-p/840220#M295278</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-12T12:06:38Z</dc:date>
    </item>
  </channel>
</rss>

