<?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: Setting variable from button action requires two clicks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479096#M1129150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All Variables get set before any Select in Fields happen (no matter what order you have them in the actions dialog).&amp;nbsp; To get around this, change your set variable search string to =Only({&amp;lt;_PorRlabel={'Reversing'}&amp;gt;}ThresholdAmt).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 19:29:01 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2013-12-12T19:29:01Z</dc:date>
    <item>
      <title>Setting variable from button action requires two clicks</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479095#M1129149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've searched the forums for a similar thread but haven't found an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A section of my UI allows users to either enter their own 'threshold' through the 'Threshold amount' input box or select one of two buttons that post pre-determined values - 'reversing' (value = 1000000) and 'permanent' (value = 10000). These text values are in a table and the numeric threshold value is in the same row as the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;_PorRlabel&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ThresholdAmt&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Permanent&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Reversing&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;IMG alt="ReverseUI.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50396_ReverseUI.png" /&gt;&lt;/P&gt;&lt;P&gt;The buttons are text boxes formatted with an image. The actions assigned are:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Actions&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Field/Variable&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Search string/Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Select In Field&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;_PorRlabel&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;='Reversing'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Set Variable&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;vCurrentThreshold&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;=Only(ThresholdAmt)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first time the button is clicked, it selects the correct value in the _PorRlabel field and set analysis in a straight table responds accordingly. However, vCurrentThreshold doesn't get set to the correct number unless the button is clicked a second time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479095#M1129149</guid>
      <dc:creator>gs_hillmm</dc:creator>
      <dc:date>2013-12-12T19:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variable from button action requires two clicks</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479096#M1129150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All Variables get set before any Select in Fields happen (no matter what order you have them in the actions dialog).&amp;nbsp; To get around this, change your set variable search string to =Only({&amp;lt;_PorRlabel={'Reversing'}&amp;gt;}ThresholdAmt).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479096#M1129150</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-12-12T19:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variable from button action requires two clicks</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479097#M1129151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response. That is &lt;EM&gt;exactly&lt;/EM&gt; what I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-from-button-action-requires-two-clicks/m-p/479097#M1129151</guid>
      <dc:creator>gs_hillmm</dc:creator>
      <dc:date>2013-12-12T19:56:08Z</dc:date>
    </item>
  </channel>
</rss>

