<?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: Macro on text object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439221#M163674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alerts cannot be assigned to an Alternate State. However, the alert Condition or Message can reference an alternate state in the expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({[StateA]} Sales) &amp;lt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what the use case for referencing Alt States in an alert would be. Alt States are associated with user selections which don't come into play in an Alert unless you are applying bookmarks in the Alert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 14:02:39 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-05-14T14:02:39Z</dc:date>
    <item>
      <title>Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439214#M163667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if there is any way to trigger a macro when a text object has a specific value.&lt;/P&gt;&lt;P&gt;For example if the text object contains the string 'Warning' run a macro that will send e-mail to specific people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikolaos Kavroulakis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 12:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439214#M163667</guid>
      <dc:creator />
      <dc:date>2013-05-08T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439215#M163668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The text object is getting its value from somewhere. For example a variable changes or a selection is made. You need to add the Run Macro action on the event trigger of the event that causes the change. That could be an OnSelect field event trigger or an OnInput or OnChange variable event trigger. See the Triggers tab of the document properties window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 12:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439215#M163668</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-08T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439216#M163669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wassenaar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text object takes its value from the expression&lt;/P&gt;&lt;P&gt; =if( $(eOutOfBoundRate) &amp;gt;=$(vWarningRate) , 'WARNING','NORMAL')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So where i want to get to eventualy is when the text object contains 'WARNING' trigger a macro that will send&lt;/P&gt;&lt;P&gt;an email to specific people.All the selections are locked and to not change.The only thing changing is the value of the expression.Is that possible???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 12:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439216#M163669</guid>
      <dc:creator />
      <dc:date>2013-05-08T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439217#M163670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're using two variables: eOutOfBoundRate and vWarningRate. You need to figure out which variable changes and should have the action assigned to its OnChange and/or OnInput event trigger. Maybe you need to add it to triggers of both variables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 12:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439217#M163670</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-08T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439218#M163671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vWarningRate&lt;/SPAN&gt; is a predetermined number and does not change.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;eOutOfBoundRate &lt;/SPAN&gt; is an expression that is changing only with the reload of the data as we can not deselect any data due to that every field is locked.&lt;/P&gt;&lt;P&gt;So I guess if i set up an action on the varible &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;eOutOfBoundRate on variable event trigger when i reload the data it will trigger the macro by default....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;What i actualy want is&amp;nbsp; something like &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if( $(eOutOfBoundRate) &amp;gt;=$(vWarningRate) , '''' RUN MACRO '''''')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439218#M163671</guid>
      <dc:creator />
      <dc:date>2013-05-08T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439219#M163672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider using an Alert instead of a macro. Much easier. You can see an example of doing something like your problem here:&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://qlikviewnotes.blogspot.com/2010/09/monitoring-reload-schedule.html"&gt;http://qlikviewnotes.blogspot.com/2010/09/monitoring-reload-schedule.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your alert condition would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;$(eOutOfBoundRate) &amp;gt;=$(vWarningRate) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439219#M163672</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-05-08T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439220#M163673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the quick responce Rob.&lt;/P&gt;&lt;P&gt;There is an issue with my implementation if i use alert because i have to many alternate states.&lt;/P&gt;&lt;P&gt;Does Alerts support alternate states so that i can have the same condition for different states??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 14:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439220#M163673</guid>
      <dc:creator />
      <dc:date>2013-05-08T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro on text object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439221#M163674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alerts cannot be assigned to an Alternate State. However, the alert Condition or Message can reference an alternate state in the expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({[StateA]} Sales) &amp;lt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what the use case for referencing Alt States in an alert would be. Alt States are associated with user selections which don't come into play in an Alert unless you are applying bookmarks in the Alert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 14:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-on-text-object/m-p/439221#M163674</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-05-14T14:02:39Z</dc:date>
    </item>
  </channel>
</rss>

