<?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 definition overwritten in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214971#M68456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;Just wondering if anybody has come across this problem?&lt;/P&gt;&lt;P&gt;I have various variables defined in a QVW, the variables are defined as (for example):&lt;/P&gt;&lt;P&gt;varOSUser: =OSUser()&lt;/P&gt;&lt;P&gt;varReportDate: =GetFieldSelections("DT_ReportDate")&lt;/P&gt;&lt;P&gt;Most of the time these variables work fine, but every now and again when I release a version to our staging or production environments, the variable definitions have been overwritten with the content (i.e. the result of the expression). So the document goes into production and all of a sudden my variables are defined as:&lt;/P&gt;&lt;P&gt;varOSUser: nwest&lt;/P&gt;&lt;P&gt;varReportDate: 31 Dec 2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on that, it's getting to be a real pain in the A$£E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2010 11:27:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-18T11:27:03Z</dc:date>
    <item>
      <title>Variable definition overwritten</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214971#M68456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;Just wondering if anybody has come across this problem?&lt;/P&gt;&lt;P&gt;I have various variables defined in a QVW, the variables are defined as (for example):&lt;/P&gt;&lt;P&gt;varOSUser: =OSUser()&lt;/P&gt;&lt;P&gt;varReportDate: =GetFieldSelections("DT_ReportDate")&lt;/P&gt;&lt;P&gt;Most of the time these variables work fine, but every now and again when I release a version to our staging or production environments, the variable definitions have been overwritten with the content (i.e. the result of the expression). So the document goes into production and all of a sudden my variables are defined as:&lt;/P&gt;&lt;P&gt;varOSUser: nwest&lt;/P&gt;&lt;P&gt;varReportDate: 31 Dec 2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on that, it's getting to be a real pain in the A$£E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 11:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214971#M68456</guid>
      <dc:creator />
      <dc:date>2010-01-18T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Variable definition overwritten</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214972#M68457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nigel,&lt;/P&gt;&lt;P&gt;If I understood your problem correctly, you are evaluating those functions so the user (the document) doesn't see the function itself but the result.&lt;/P&gt;&lt;P&gt;I would suggest you to use SET instead of LET to solve that problem when declaring those variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET varOSUser = OSUSER();&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is that what you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 12:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214972#M68457</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-01-18T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Variable definition overwritten</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214973#M68458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actual I'm not using SET or LET, I simply add the definition into the variable using the Settings - Variable Definitions window, perhaps this is the problem, perhaps QlikTech intended this only to review variables rather than create them.&lt;/P&gt;&lt;P&gt;I'll try the SET method, because at least this way it would get defined evey time the load script is run.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 12:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-definition-overwritten/m-p/214973#M68458</guid>
      <dc:creator />
      <dc:date>2010-01-18T12:05:41Z</dc:date>
    </item>
  </channel>
</rss>

