<?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 Is it possible to use dynamic variables in the variable box of a button action? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2113838#M90931</link>
    <description>&lt;P&gt;kind of hard to explain without seeing it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rnorris_0-1693948674534.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115713i148581BB25272607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rnorris_0-1693948674534.png" alt="rnorris_0-1693948674534.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is what I'm trying to do. Here, vVarClause is a variable, that resolves to 'v$(x)Clause' where $(x) is a counter. The first action you can see is to increment the counter. So, initially, it evaluates as v0Clause. When you first click this button, it is v1Clause, and so, the second action (expanded here) should be to update the value for v1Clause. Clicking it again, it should update v2Clause, and so on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in practice, despite the little 'function' fx icon thingie to the right of the variable name box, it seems that putting any kind of expression in there does nothing? I've tried even putting in:&lt;BR /&gt;&lt;BR /&gt;if($(x) = 1, v1Clause, if($(x) = 2, v2Clause))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and similar, this doesn't seem to work either. Looking at the evaluated code at the bottom of the screen in the editor, it seems to work, but in practice doesn't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is what I'm trying to do possible? Like most of Qlik Sense, it feels really annoying and inconsistent. I have no idea if I've got the wrong syntax or if for some reason it just doesn't work the same way here as it does everywhere else.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 21:23:54 GMT</pubDate>
    <dc:creator>rnorris</dc:creator>
    <dc:date>2023-09-05T21:23:54Z</dc:date>
    <item>
      <title>Is it possible to use dynamic variables in the variable box of a button action?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2113838#M90931</link>
      <description>&lt;P&gt;kind of hard to explain without seeing it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rnorris_0-1693948674534.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115713i148581BB25272607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rnorris_0-1693948674534.png" alt="rnorris_0-1693948674534.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is what I'm trying to do. Here, vVarClause is a variable, that resolves to 'v$(x)Clause' where $(x) is a counter. The first action you can see is to increment the counter. So, initially, it evaluates as v0Clause. When you first click this button, it is v1Clause, and so, the second action (expanded here) should be to update the value for v1Clause. Clicking it again, it should update v2Clause, and so on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in practice, despite the little 'function' fx icon thingie to the right of the variable name box, it seems that putting any kind of expression in there does nothing? I've tried even putting in:&lt;BR /&gt;&lt;BR /&gt;if($(x) = 1, v1Clause, if($(x) = 2, v2Clause))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and similar, this doesn't seem to work either. Looking at the evaluated code at the bottom of the screen in the editor, it seems to work, but in practice doesn't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is what I'm trying to do possible? Like most of Qlik Sense, it feels really annoying and inconsistent. I have no idea if I've got the wrong syntax or if for some reason it just doesn't work the same way here as it does everywhere else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 21:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2113838#M90931</guid>
      <dc:creator>rnorris</dc:creator>
      <dc:date>2023-09-05T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic variables in the variable box of a button action?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2114079#M90946</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152246"&gt;@rnorris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem is your "Variable" input should be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;'$(&lt;SPAN&gt;vVarClause&lt;/SPAN&gt;)'&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;With the single quotes.&lt;/P&gt;
&lt;P&gt;Attached is an example where i made it work, I think i replicated your case.&lt;/P&gt;
&lt;P&gt;Hope its helpful.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 11:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2114079#M90946</guid>
      <dc:creator>Javizh</dc:creator>
      <dc:date>2023-09-06T11:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic variables in the variable box of a button action?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2114429#M90976</link>
      <description>&lt;P&gt;Hmm, I'm fairly sure I tried with quotes, but possibly I tried with quotes and a preceding = sign? I'll give it a go later, thanks so much for your help! The community here really is amazing.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 09:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2114429#M90976</guid>
      <dc:creator>rnorris</dc:creator>
      <dc:date>2023-09-07T09:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic variables in the variable box of a button action?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2114746#M90986</link>
      <description>&lt;P&gt;AH! Amazing! So, I had tried, but actually it was the other way around, I'd been trying 'without' the = sign, and looking at your code, you have it there! With that, it DOES work, awesome, thank you so much! With normal variable names, if you open the editor, Qlik inserts the = for you, which then breaks it, and you have to take it out yourself! I'd just fallen into the trap of doing that, I guess!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-use-dynamic-variables-in-the-variable-box-of-a/m-p/2114746#M90986</guid>
      <dc:creator>rnorris</dc:creator>
      <dc:date>2023-09-07T20:11:44Z</dc:date>
    </item>
  </channel>
</rss>

