<?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: Call variable in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-variable-in-script/m-p/1735565#M591882</link>
    <description>&lt;P&gt;Set analysis doesn't work in load script.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 12:20:36 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-08-13T12:20:36Z</dc:date>
    <item>
      <title>Call variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Call-variable-in-script/m-p/1735544#M591880</link>
      <description>&lt;P&gt;I have a variable containing set analysis code. I then want to call this variable in the load script.&lt;/P&gt;&lt;P&gt;The variable is called vNSWIPALOS and the code looks like this:&lt;BR /&gt;if(Sum({$&amp;lt;[LHD/SHN]=,Facility=,LHD=, EncounterTypeCode = {' &amp;amp; chr(39) &amp;amp; I &amp;amp; chr(39) &amp;amp;'}&amp;gt;} Counter_Activity)=0, '',&lt;BR /&gt;Sum({$&amp;lt;[LHD/SHN]=,Facility=,LHD=&amp;gt;} IPLOS)&lt;BR /&gt;/&lt;BR /&gt;Sum({$&amp;lt;[LHD/SHN]=,Facility=,LHD=,EncounterTypeCode = {' &amp;amp; chr(39) &amp;amp; I &amp;amp; chr(39) &amp;amp;'}&amp;gt;} Counter_Activity))&lt;/P&gt;&lt;P&gt;I have added the chr(39) to replace the ' to get it work when I call it from the script.&lt;/P&gt;&lt;P&gt;I can't get the app to reload unless I call the variable using single quotes.&amp;nbsp;&lt;BR /&gt;Like this:&lt;BR /&gt;&lt;SPAN&gt;if(IPLOS &amp;lt;= '$(vNSWIPALOS)' / 3 ,Dual('Short',2)&lt;BR /&gt;etc etc in the aim to create a new field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that that new field comes out empty after the reload instead of containing the value Short etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas what I need to change to get this to work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Asa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-variable-in-script/m-p/1735544#M591880</guid>
      <dc:creator>asamariaekrickl</dc:creator>
      <dc:date>2024-11-16T00:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Call variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Call-variable-in-script/m-p/1735565#M591882</link>
      <description>&lt;P&gt;Set analysis doesn't work in load script.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 12:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-variable-in-script/m-p/1735565#M591882</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-08-13T12:20:36Z</dc:date>
    </item>
  </channel>
</rss>

