<?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: Evaluate string for Background expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Evaluate-string-for-Background-expression/m-p/2115545#M91033</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I can tell that you would benefit a lot from Rob Wunderlich's session on Advanced Scripting at the &lt;A href="https://masterssummit.com" target="_blank"&gt;Masters Summit for Qlik&lt;/A&gt;! He covers these tricky questions on variables with many interesting examples!&lt;/P&gt;
&lt;P&gt;In your case, you need to calculate the name of the variable first, and then enclose it in the dollar-sign expansion, to replace the name with the contents. So, you need two nested dollar-sign expansions, like this:&lt;/P&gt;
&lt;P&gt;=$($(='vColor'&amp;amp;1))&lt;/P&gt;
&lt;P&gt;This will do the trick.&lt;/P&gt;
&lt;P&gt;To learn more advanced development techniques, check out the agenda of the &lt;A href="https://masterssummit.com" target="_blank"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Orlando and to Dublin!&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 13:23:29 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2023-09-11T13:23:29Z</dc:date>
    <item>
      <title>Evaluate string for Background expression</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluate-string-for-Background-expression/m-p/2115135#M91004</link>
      <description>&lt;P&gt;Hi, I'm trying to create a background expression formula that is dynamic and picks the variable based on an expression. I've done this in QV before but it doesn't seem to work in QS.&lt;/P&gt;
&lt;P&gt;I've tried several combinations of different syntax, but the gist of it is trying to get a variable that says vColor1, vColor2, etc. where 1 is a calculation.&lt;/P&gt;
&lt;P&gt;Concat('vColor',1)&lt;/P&gt;
&lt;P&gt;'vColor' &amp;amp; '1'&lt;/P&gt;
&lt;P&gt;'$(vColor' &amp;amp; '1)'&lt;/P&gt;
&lt;P&gt;Has anyone gotten something like this to work? I'm trying to avoid creating a variable for each column and using the variable to evaluate..&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 21:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluate-string-for-Background-expression/m-p/2115135#M91004</guid>
      <dc:creator>mlin</dc:creator>
      <dc:date>2023-09-08T21:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate string for Background expression</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluate-string-for-Background-expression/m-p/2115545#M91033</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I can tell that you would benefit a lot from Rob Wunderlich's session on Advanced Scripting at the &lt;A href="https://masterssummit.com" target="_blank"&gt;Masters Summit for Qlik&lt;/A&gt;! He covers these tricky questions on variables with many interesting examples!&lt;/P&gt;
&lt;P&gt;In your case, you need to calculate the name of the variable first, and then enclose it in the dollar-sign expansion, to replace the name with the contents. So, you need two nested dollar-sign expansions, like this:&lt;/P&gt;
&lt;P&gt;=$($(='vColor'&amp;amp;1))&lt;/P&gt;
&lt;P&gt;This will do the trick.&lt;/P&gt;
&lt;P&gt;To learn more advanced development techniques, check out the agenda of the &lt;A href="https://masterssummit.com" target="_blank"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Orlando and to Dublin!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluate-string-for-Background-expression/m-p/2115545#M91033</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2023-09-11T13:23:29Z</dc:date>
    </item>
  </channel>
</rss>

