<?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: Scripting Assistance for Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053726#M86584</link>
    <description>&lt;P&gt;Thank you - this works!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 16:39:01 GMT</pubDate>
    <dc:creator>QFanatic</dc:creator>
    <dc:date>2023-03-27T16:39:01Z</dc:date>
    <item>
      <title>Scripting Assistance for Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053660#M86580</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Silly question this one.&lt;/P&gt;
&lt;P&gt;Please paste the below code in an empty QlikView file. My Code fails on the 'Match' statement. I need some assistance to get this to work please, and I've tried all options I can think of.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tbl:&lt;BR /&gt;load&lt;BR /&gt;chr(40) &amp;amp; concat(Code, ',') &amp;amp; chr(41) as Codelist;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Code&lt;BR /&gt;28&lt;BR /&gt;29&lt;BR /&gt;30&lt;BR /&gt;];&lt;BR /&gt;Let MyVar = FieldVAlue('Codelist',1);&lt;BR /&gt;drop table Tbl;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DemoData_1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Student, Code&lt;BR /&gt;Peter, 28&lt;BR /&gt;Pam, 88&lt;BR /&gt;Paul, 30&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;DemoData:&lt;BR /&gt;NoConcatenate load&lt;BR /&gt;*&lt;BR /&gt;Resident&lt;BR /&gt;DemoData_1&lt;BR /&gt;where match(Code, $(MyVar)) &amp;gt; 0 ; //this is where it fails - I've also tried&amp;nbsp;$(MyVar), with no luck - it runs, but returns nothing&lt;/P&gt;
&lt;P&gt;drop table DemoData_1;&lt;/P&gt;
&lt;P&gt;exit SCRIPT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053660#M86580</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2023-03-27T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Assistance for Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053679#M86581</link>
      <description>&lt;P&gt;Try '$(MyVar)'&lt;/P&gt;
&lt;P&gt;Otherwise, run it in debug mode and see if the variable is assigned correctly in the first place.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 15:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053679#M86581</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-03-27T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Assistance for Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053722#M86583</link>
      <description>&lt;P&gt;your variable after the first styatement is&amp;nbsp;(28,29,30)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe with&lt;/P&gt;
&lt;P&gt;where Index('$(MyVar)', Code)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Index.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Index.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053722#M86583</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2023-03-27T16:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Assistance for Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053726#M86584</link>
      <description>&lt;P&gt;Thank you - this works!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Scripting-Assistance-for-Variable/m-p/2053726#M86584</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2023-03-27T16:39:01Z</dc:date>
    </item>
  </channel>
</rss>

