<?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 Trigger Macro on INPUTFIELD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280030#M104209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Set up a document variable containing an expression something like this: &lt;STRONG&gt; =Sum(sales_forecast) &lt;/STRONG&gt; where the value of the expression would change when the input field value changes. Then, set up a trigger that will fire when the value of the variable changes. Test it out - this method does not work with some releases of version 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 19:38:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-05T19:38:01Z</dc:date>
    <item>
      <title>Trigger Macro on INPUTFIELD</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280029#M104208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table chart with 2 input fields defined inside the load script in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUTFIELD field1, field2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my expressions i use InputSum(field1) and InputSum(field2) to have 2 editable columns.&lt;/P&gt;&lt;P&gt;Now, i would need to run a macro each time the user inputs a new value in these cells, so that i can make further selections on my data based on the user's inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the "Field Event Triggers" but i can't find a suitable event given that&amp;nbsp; the "onChange" does not fire when a change is made to a field but when a change is made to another field logically associated with the field, and this is not what i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 17:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280029#M104208</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2011-12-05T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Trigger Macro on INPUTFIELD</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280030#M104209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Set up a document variable containing an expression something like this: &lt;STRONG&gt; =Sum(sales_forecast) &lt;/STRONG&gt; where the value of the expression would change when the input field value changes. Then, set up a trigger that will fire when the value of the variable changes. Test it out - this method does not work with some releases of version 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 19:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280030#M104209</guid>
      <dc:creator />
      <dc:date>2011-12-05T19:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Macro on INPUTFIELD</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280031#M104210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried what you suggested but it seems the trigger for the event does not fire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i did : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I created a new variable called v_field1&lt;/P&gt;&lt;P&gt;2) I set the variable's value to &lt;STRONG&gt;=Sum(field1)&lt;/STRONG&gt; (field1 is the field associated with the input field of the chart)&lt;/P&gt;&lt;P&gt;3) Inside the &lt;STRONG&gt;"Document Properties"&lt;/STRONG&gt; i set the &lt;STRONG&gt;OnChange "Variable Item Trigger"&lt;/STRONG&gt; of the v_field1 variable to a simple macro which outputs a message with &lt;STRONG&gt;msgbox "T"&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that the value of the expression Sum(field1) changes when i input a value in my chart, the value of the variable v_field1 changes aswell, but the Macro i attached to the "OnChange" event of the variable is not called. I Tried to replace what i do inside the macro with something else (like setting another variable) but it's the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i missing something?&lt;/P&gt;&lt;P&gt;My Qlikview server and client is v 10 SR3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 10:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Macro-on-INPUTFIELD/m-p/280031#M104210</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2011-12-06T10:51:53Z</dc:date>
    </item>
  </channel>
</rss>

