<?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 to set a trigger - need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814316#M663384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way might be to make all your requirements with macro-code. Alternatives could be to upgrade the system to the last release and/or to rebuild the complete application (sometimes a qvw get corrupted - firstly with a more or less copy + paste approach and if it don't work with more efforts for each object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 16:31:03 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-02-16T16:31:03Z</dc:date>
    <item>
      <title>Macro to set a trigger - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814313#M663381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikViewer's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a strange request where the trigger on a object should be set with a macro. &lt;BR /&gt;The issue is, at times we loose the triggers, so as an exception handling we are wanting to write a macro which will set the trigger as soon as a sheet is activated. How can we achieve this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 13:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814313#M663381</guid>
      <dc:creator>subin6600</dc:creator>
      <dc:date>2015-02-16T13:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to set a trigger - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814314#M663382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think to create or change a trigger with macros won't be possible. But if you used a trigger to execute the macro then the macro could do these things what the triggered action would have be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a trigger couldn't really be lost - are you sure the trigger isn't deleted by a human activity, directly by removing or removing / renaming from the sheet/field/variable or similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 15:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814314#M663382</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-16T15:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to set a trigger - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814315#M663383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its really difficult to reproduce such issues and so don't really have an explanation as to how it had happened. So for handling such incidents in future, I was thinking to create a macro which will check if the triggers are in place and if they are missing, the macro should set the trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its kind of being very optimistic but trying to find an answer. Let me know if you could suggest any other solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Subin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814315#M663383</guid>
      <dc:creator>subin6600</dc:creator>
      <dc:date>2015-02-16T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to set a trigger - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814316#M663384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way might be to make all your requirements with macro-code. Alternatives could be to upgrade the system to the last release and/or to rebuild the complete application (sometimes a qvw get corrupted - firstly with a more or less copy + paste approach and if it don't work with more efforts for each object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/814316#M663384</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-16T16:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to set a trigger - need help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/2530792#M1226663</link>
      <description>&lt;P&gt;This post is ancient, but it is possible to change triggers with marcos:&lt;/P&gt;&lt;DIV&gt;SUB Aktion_bei_Auswahl&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;set fld=ActiveDocument.GetField("Jahr")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;set fp = fld.GetProperties&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;set actions=fp.OnSelectActionItems&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for i=0 to actions.Count-1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;msgbox "Action types: " &amp;amp; actions.item(i).Type&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;next&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;actions.add&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;actions.item(i).Type = 29&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fld.SetProperties fp&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;' Action types enumerated as follows:&lt;/DIV&gt;&lt;DIV&gt;' Info=0&lt;/DIV&gt;&lt;DIV&gt;' Sql=1&lt;/DIV&gt;&lt;DIV&gt;' Lock All=2&lt;/DIV&gt;&lt;DIV&gt;' Unlock All=3&lt;/DIV&gt;&lt;DIV&gt;' Clear All=4&lt;/DIV&gt;&lt;DIV&gt;' Clear All Incl Locked=5&lt;/DIV&gt;&lt;DIV&gt;' Back=6&lt;/DIV&gt;&lt;DIV&gt;' Forward=7&lt;/DIV&gt;&lt;DIV&gt;' File Close=8&lt;/DIV&gt;&lt;DIV&gt;' Next Tab=9&lt;/DIV&gt;&lt;DIV&gt;' Prev Tab=10&lt;/DIV&gt;&lt;DIV&gt;' Export=11&lt;/DIV&gt;&lt;DIV&gt;' Launch=12&lt;/DIV&gt;&lt;DIV&gt;' Macro=13&lt;/DIV&gt;&lt;DIV&gt;' Recall Bookmark=14&lt;/DIV&gt;&lt;DIV&gt;' Replace Bookmark=15&lt;/DIV&gt;&lt;DIV&gt;' Create Bookmark=16&lt;/DIV&gt;&lt;DIV&gt;' Print Report=17&lt;/DIV&gt;&lt;DIV&gt;' Activate Sheet=18&lt;/DIV&gt;&lt;DIV&gt;' Print Sheet=19&lt;/DIV&gt;&lt;DIV&gt;' Print Object=20&lt;/DIV&gt;&lt;DIV&gt;' Restore Object=21&lt;/DIV&gt;&lt;DIV&gt;' Minimize Object=22&lt;/DIV&gt;&lt;DIV&gt;' Maximize Object=23&lt;/DIV&gt;&lt;DIV&gt;' Activate Object=24&lt;/DIV&gt;&lt;DIV&gt;' Select Excluded=25&lt;/DIV&gt;&lt;DIV&gt;' Clear Other Fields=26&lt;/DIV&gt;&lt;DIV&gt;' Select Possible=27&lt;/DIV&gt;&lt;DIV&gt;' Lock=28&lt;/DIV&gt;&lt;DIV&gt;' Unlock=29&lt;/DIV&gt;&lt;DIV&gt;' Pareto Select=30&lt;/DIV&gt;&lt;DIV&gt;' Set Value=31&lt;/DIV&gt;&lt;DIV&gt;' Field Select=32&lt;/DIV&gt;&lt;DIV&gt;' Field Toggleselect=33&lt;/DIV&gt;&lt;DIV&gt;' Open Url=34&lt;/DIV&gt;&lt;DIV&gt;' Document Chain=35&lt;/DIV&gt;&lt;DIV&gt;' Eov=36&lt;/DIV&gt;&lt;DIV&gt;END SUB&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We face the same problem as described by Subin. It occurs when you open the QlikView file without data or you make alterations which results in a dataset where the field doesn't exist anymore. Then the trigger on the field gets lost, too.&lt;/DIV&gt;&lt;DIV&gt;- Joachim&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Sep 2025 10:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-a-trigger-need-help/m-p/2530792#M1226663</guid>
      <dc:creator>hagerjoachim</dc:creator>
      <dc:date>2025-09-15T10:44:13Z</dc:date>
    </item>
  </channel>
</rss>

