<?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: User variable as a fieldname during the script loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905857#M658344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;It works &lt;SPAN style="font-size: 13.3333330154419px;"&gt;perfectly&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Apr 2015 10:57:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-26T10:57:42Z</dc:date>
    <item>
      <title>User variable as a fieldname during the script loading</title>
      <link>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905854#M658341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know is it possible to use variable as a field name during the loading?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFieldName = 'aaabbb'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as $(vFieldName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 10:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905854#M658341</guid>
      <dc:creator />
      <dc:date>2015-04-26T10:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: User variable as a fieldname during the script loading</title>
      <link>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905855#M658342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is certainly possible and works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make sure you have a semicolon after the &lt;EM&gt;let&lt;/EM&gt; statement and a comma after the dollar expansion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 10:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905855#M658342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-26T10:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: User variable as a fieldname during the script loading</title>
      <link>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905856#M658343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; Variables are very flexible in QlikView, in expressions and load script.&amp;nbsp; Believe it or not the following will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;let vFieldName = 'tion as Fie';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Descrip$(vFieldName)ldname,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The syntax highlighting will have a wobbler, but you just have to think of dollar sign expansion as copying and pasting the contents of the variable into the location where you do the DSE.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope that makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 10:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905856#M658343</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-04-26T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: User variable as a fieldname during the script loading</title>
      <link>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905857#M658344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;It works &lt;SPAN style="font-size: 13.3333330154419px;"&gt;perfectly&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 10:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905857#M658344</guid>
      <dc:creator />
      <dc:date>2015-04-26T10:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: User variable as a fieldname during the script loading</title>
      <link>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905858#M658345</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;Thanks for your reply. I missed the semicolon only from the post. I tried to passed the variable to the fieldname as $(vFieldName)&amp;amp;'_xy' instead of $(vFieldName)_xy. Now it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 11:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-variable-as-a-fieldname-during-the-script-loading/m-p/905858#M658345</guid>
      <dc:creator />
      <dc:date>2015-04-26T11:00:24Z</dc:date>
    </item>
  </channel>
</rss>

