<?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 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable/m-p/2463321#M99025</link>
    <description>&lt;P&gt;I define my Variable like that:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Frdricdh_1-1718699927541.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168079i6E6951E40B6DC8BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Frdricdh_1-1718699927541.png" alt="Frdricdh_1-1718699927541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND in MY SQL, I use the variable like that&lt;/P&gt;
&lt;P&gt;WHERE&lt;/P&gt;
&lt;P&gt;XBRA.XBREFNUM = $(REF)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i write this '$(REF)', Qlikview use it like a string, no?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 08:42:08 GMT</pubDate>
    <dc:creator>Frédéricdh</dc:creator>
    <dc:date>2024-06-18T08:42:08Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable/m-p/2463028#M99010</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I crete an Button where I set a variable like this REF = 26222&lt;/P&gt;
&lt;P&gt;and in the script i write this REFNUM = $(REF) but it doesn't work, the srcipt don't find a value or the REFm why?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 13:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable/m-p/2463028#M99010</guid>
      <dc:creator>Frédéricdh</dc:creator>
      <dc:date>2024-06-17T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable/m-p/2463045#M99011</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/204231"&gt;@Frédéricdh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Would be nice to see exactly what you do have typed in your Load Script and what do you have on your UI. I'll give you an example:&lt;BR /&gt;&lt;BR /&gt;The first Action of this button set the value of a variable vRunningTask:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1718632576040.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168021i341A6BB32D85B9E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1718632576040.png" alt="marksouzacosta_0-1718632576040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;These are the variables in the Variables window:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_2-1718632807878.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168023iBB7B9080F8BF7F1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_2-1718632807878.png" alt="marksouzacosta_2-1718632807878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is how I called in the Load Script:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_1-1718632647743.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168022i5FB2759DD8F72D20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_1-1718632647743.png" alt="marksouzacosta_1-1718632647743.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You are probably missing something in your Load Script. How are you setting your variable? What is the code? I believe it should be something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SET REFNUM = '$(REF)';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable/m-p/2463045#M99011</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-17T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable/m-p/2463321#M99025</link>
      <description>&lt;P&gt;I define my Variable like that:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Frdricdh_1-1718699927541.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168079i6E6951E40B6DC8BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Frdricdh_1-1718699927541.png" alt="Frdricdh_1-1718699927541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND in MY SQL, I use the variable like that&lt;/P&gt;
&lt;P&gt;WHERE&lt;/P&gt;
&lt;P&gt;XBRA.XBREFNUM = $(REF)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i write this '$(REF)', Qlikview use it like a string, no?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 08:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable/m-p/2463321#M99025</guid>
      <dc:creator>Frédéricdh</dc:creator>
      <dc:date>2024-06-18T08:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable/m-p/2463435#M99040</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;SPAN&gt;XBRA.XBREFNUM = $(Ref) instead.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Qlik is case sensitive. That is why it is not finding REF (uppercase).&lt;BR /&gt;Regarding your question, yes, if you use single quotes, it will be considered strings otherwise will try to use it as a numeric value. If it is numeric, you are good.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable/m-p/2463435#M99040</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-18T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Variable/m-p/2463697#M99060</link>
      <description>&lt;P&gt;No it doesn't work&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="UniTable script-Zsye" border="1" cellspacing="0" cellpadding="2"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH&gt;&lt;SPAN class="Uni" title="U+1F61E (&amp;nbsp;😞&amp;nbsp;)"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 19 Jun 2024 06:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable/m-p/2463697#M99060</guid>
      <dc:creator>Frédéricdh</dc:creator>
      <dc:date>2024-06-19T06:39:12Z</dc:date>
    </item>
  </channel>
</rss>

