<?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: Variable Setting wrong in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415413#M95060</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/238883"&gt;@PDurnall&lt;/a&gt;&amp;nbsp;Qlik capture the reload from top to bottom, It means when you find error in 8th line, but actually you already triggered till 7 lines, It means all the variables are stored into UI as script variable.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 12:44:21 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2024-02-06T12:44:21Z</dc:date>
    <item>
      <title>Variable Setting wrong</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415378#M95052</link>
      <description>&lt;P&gt;I am building qlik app that builds QVDS for analysts to use however im getting a bit of a weird error im not sure how to resolve so i am using this bit of code to set the vTable to 'CostCentres'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDurnall_0-1707219468211.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159173i50273123CDCCF743/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PDurnall_0-1707219468211.png" alt="PDurnall_0-1707219468211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but when stepping through it sets them as this below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDurnall_1-1707219525858.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159174i3E0A6971A0667F7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PDurnall_1-1707219525858.png" alt="PDurnall_1-1707219525858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I check the only time I use the RefC prefix is later in the code by around 2 sections&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDurnall_2-1707219581817.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159175iF704977295B44250/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PDurnall_2-1707219581817.png" alt="PDurnall_2-1707219581817.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;so I'm not sure how its setting the vTable to RefC when it hasn't even run that bit of code ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 11:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415378#M95052</guid>
      <dc:creator>PDurnall</dc:creator>
      <dc:date>2024-02-06T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Setting wrong</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415413#M95060</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/238883"&gt;@PDurnall&lt;/a&gt;&amp;nbsp;Qlik capture the reload from top to bottom, It means when you find error in 8th line, but actually you already triggered till 7 lines, It means all the variables are stored into UI as script variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415413#M95060</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-02-06T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Setting wrong</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415415#M95061</link>
      <description>&lt;P&gt;so when I'm trying to de bug line by line its actually 7 lines ahead of its self .. then why is it setting my&amp;nbsp; prefix to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[RefC name of column] instead of [CostCentres Name of column]&lt;/P&gt;
&lt;P&gt;So that isn't a solution&lt;/P&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415415#M95061</guid>
      <dc:creator>PDurnall</dc:creator>
      <dc:date>2024-02-06T12:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Setting wrong</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415420#M95064</link>
      <description>&lt;P&gt;I have had to fix this instead by using&amp;nbsp;&lt;BR /&gt;LET vPrefix = 'CostCentres';&lt;/P&gt;
&lt;P&gt;Instead of&amp;nbsp;&lt;BR /&gt;LET vPrefix = '$(vTable)';&lt;/P&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415420#M95064</guid>
      <dc:creator>PDurnall</dc:creator>
      <dc:date>2024-02-06T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Setting wrong</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415424#M95065</link>
      <description>&lt;P&gt;According to the middle image, vTable=CostCentres and that's what you set that variable to in the first image.&lt;/P&gt;
&lt;P&gt;Line 6 in the first image probably sets vPrefix to (null) when it is executed, but maybe it isn't because of the if-statement that precedes it. Try using apostophes like this: &lt;BR /&gt;let vPrefix = '$(vTable)';&lt;/P&gt;
&lt;P&gt;It is possible that vPrefix contains 'RefC' from a previous load.&lt;/P&gt;
&lt;P&gt;Have you tried stepping through the script in debug mode to see what happens on each line?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415424#M95065</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-02-06T12:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Setting wrong</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415450#M95073</link>
      <description>&lt;P&gt;Yep when stepping through the code when it gets to line 6 on the first image it set the variable to RefC which isn't used for another 150-200 lines of code as image below Cost Centre is ran then future appointments and then RefC.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDurnall_0-1707225423710.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159191iCE8E040D0687F518/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PDurnall_0-1707225423710.png" alt="PDurnall_0-1707225423710.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I added in the ' ' Around the Variable and this works&amp;nbsp; just really strange it grabs code from much later to use as the variable&amp;nbsp;&lt;/P&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2024 13:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-Setting-wrong/m-p/2415450#M95073</guid>
      <dc:creator>PDurnall</dc:creator>
      <dc:date>2024-02-06T13:18:30Z</dc:date>
    </item>
  </channel>
</rss>

