<?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 Macro to disable triggers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310176#M711621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try playing with Macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set docprop=ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;set actions=docprop.OnOpenActionItems&lt;/P&gt;&lt;P&gt;for i=0 to actions.Count-1&lt;/P&gt;&lt;P&gt; msgbox "Action types: " &amp;amp; actions.item(i).Type&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about disable/enable action items, but you can always add or remove them using macro.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2011 22:33:42 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2011-05-20T22:33:42Z</dc:date>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310175#M711620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to disable triggers using macro? &lt;/P&gt;&lt;P&gt;I´d like to disable triggers (like onSelect, onLock) when making selections with macro. After this I'd like to enable them back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 16:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310175#M711620</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-18T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310176#M711621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try playing with Macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set docprop=ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;set actions=docprop.OnOpenActionItems&lt;/P&gt;&lt;P&gt;for i=0 to actions.Count-1&lt;/P&gt;&lt;P&gt; msgbox "Action types: " &amp;amp; actions.item(i).Type&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about disable/enable action items, but you can always add or remove them using macro.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 22:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310176#M711621</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2011-05-20T22:33:42Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310177#M711622</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Even i couldnt found any way to enable and disable the actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you describe what actually you want to do. So that we can try some other way to achieve that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 06:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310177#M711622</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-21T06:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310178#M711623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rakesh&lt;/P&gt;&lt;P&gt;This piece of code is great! I will play with it a little bit until I'm able to add and remove actions! &lt;/P&gt;&lt;P&gt;Thanks a lot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: The following code (as an example) can add the back and the clearall actions on the field TEAM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld=ActiveDocument.GetField("TEAM")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fp = fld.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set actions=fp.OnSelectActionItems&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIONs.ADD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions.item(0).type = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIONs.ADD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions.item(1).type = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld.setproperties fp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 02:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310178#M711623</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-23T02:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310179#M711624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kaushik&lt;/P&gt;&lt;P&gt;Thanks for looking for a way to do it.&lt;/P&gt;&lt;P&gt;I used Rakesh code to understand the QV objects a little better to be able to remove and add actions to the document and field. I'd say it's already a work-around since would be easier to do something like: Activedocument.disableActions and .enableActions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 03:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310179#M711624</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-23T03:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310180#M711625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you eventually find the way to remove actions or, maybe, to disable triggers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I specially would like to know &lt;SPAN style="text-decoration: underline;"&gt;how to remove actions&lt;/SPAN&gt;. "Add" would add an action but "Remove", "Delete"... won't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 11:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310180#M711625</guid>
      <dc:creator />
      <dc:date>2011-05-29T11:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310181#M711626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have tried to find it (how to remove actions through a macro) in the API guide with no success:&lt;/P&gt;&lt;P&gt;- OnSelectActionItems.Add to add a new action&lt;BR /&gt;- OnSelectActionItems.Item(i).Type = nn to set the action i type&lt;BR /&gt;- OnSelectActionItems.Item(i).????? to delete action i&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does somone know what to put in ????? (delete, remove, ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310181#M711626</guid>
      <dc:creator />
      <dc:date>2011-05-30T09:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310182#M711627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Carlos. &lt;/P&gt;&lt;P&gt;The folllowings sub can add and remove actions respectively: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sub addActions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld=ActiveDocument.GetField("TEAM")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fp = fld.GetProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set actions=fp.OnSelectActionItems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIONs.ADD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions.item(0).type = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIONs.ADD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions.item(1).type = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld.setproperties fp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub removeActions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld=ActiveDocument.GetField("TEAM")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fp = fld.GetProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set actions=fp.OnSelectActionItems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=actions.Count-1 to 0 step -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions.removeat(i)&lt;/P&gt;&lt;P&gt; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld.setproperties fp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 10:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310182#M711627</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-30T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310183#M711628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Erich.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So &lt;EM&gt;RemoveAt(i)&lt;/EM&gt; whas the magic word I've been trying to figure out this weekend&amp;nbsp; !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 10:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310183#M711628</guid>
      <dc:creator />
      <dc:date>2011-05-30T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310184#M711629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have tried this macro and works fine in local QV:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub UserSetting()&lt;BR /&gt; &lt;BR /&gt; User=Lcase(ActiveDocument.GetLayout.AuthenticatedUser)&lt;BR /&gt; set fld=ActiveDocument.GetField("OSUSER")&lt;BR /&gt; set fldprop=fld.GetProperties&lt;BR /&gt; &lt;BR /&gt; set actionsfld=fldprop.OnSelectActionItems&lt;BR /&gt; for i=actionsfld.Count-1 to 0 step -1&lt;BR /&gt; actionsfld.RemoveAt(i)&lt;BR /&gt; next&lt;BR /&gt; &lt;BR /&gt; set actionsfld=fldprop.OnUnlockActionItems&lt;BR /&gt; for i=actionsfld.Count-1 to 0 step -1&lt;BR /&gt; actionsfld.RemoveAt(i)&lt;BR /&gt; next&lt;BR /&gt; &lt;BR /&gt; fld.SetProperties fldprop&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; ActiveDocument.Fields("OSUSER").Unlock&lt;BR /&gt; ActiveDocument.ClearAll&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt; &lt;STRONG&gt;ActiveDocument.Fields("OSUSER").Select User &lt;/STRONG&gt;&lt;EM&gt;(this seems not to be working in the server)&lt;/EM&gt;&lt;BR /&gt; ActiveDocument.Fields("OSUSER").Lock&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; set actionsfld=fldprop.OnSelectActionItems&lt;BR /&gt; actionsfld.Add&lt;BR /&gt; actionsfld.Item(0).Type = 6&lt;BR /&gt; actionsfld.Add&lt;BR /&gt; actionsfld.Item(1).Type = 4&lt;BR /&gt; &lt;BR /&gt; set actionsfld=fldprop.OnUnlockActionItems&lt;BR /&gt; actionsfld.Add&lt;BR /&gt; actionsfld.Item(0).Type = 6&lt;BR /&gt; actionsfld.Add&lt;BR /&gt; actionsfld.Item(1).Type = 28&lt;BR /&gt; &lt;BR /&gt; fld.SetProperties fldprop&lt;BR /&gt; &lt;BR /&gt; End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I retrieve the OS user, eliminate the "protective" OnSelect/OnUnlock actions, unlock, set the field OSUSER to the curren user, lock again and restore the "protective" OnSelect/OnUnlock actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfect in local machine but not in the server (see comment in the macro code)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 14:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310184#M711629</guid>
      <dc:creator />
      <dc:date>2011-05-30T14:24:15Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310185#M711630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get the user? Try to include a message to test it: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub UserSetting()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; User=Lcase(ActiveDocument.&lt;/P&gt;&lt;P&gt;GetLayout.AuthenticatedUser)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;msgbox (User)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set fld=ActiveDocument.GetField("OSUSER")&lt;BR /&gt; set fldprop=fld.GetProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ..... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 14:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310185#M711630</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-30T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310186#M711631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh yes Erich, I get the user (checked with the msgbox)&lt;/P&gt;&lt;P&gt;I'm still investigating but I think that there is some limitation to set and remove actions when it is executed in the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 14:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310186#M711631</guid>
      <dc:creator />
      <dc:date>2011-05-30T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310187#M711632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing investigation. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The instruction not working in the server is:&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("OSUSER").Unlock &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most amazing is that the RemoveAt(i) instructions are working correctly (msgbox actionsfld.Count displays 2 before and 0 after).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 15:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310187#M711632</guid>
      <dc:creator />
      <dc:date>2011-05-30T15:20:08Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310188#M711633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any actions associated with the unlock at this point of the macro? &lt;/P&gt;&lt;P&gt;Because if there is something there already, it would call the action before continuing with your code... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 15:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310188#M711633</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-30T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310189#M711634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the attached document: first in your desktop and then in the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 16:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310189#M711634</guid>
      <dc:creator />
      <dc:date>2011-05-30T16:10:57Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310190#M711635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I'm only able to try it on desktop. &lt;/P&gt;&lt;P&gt;And it works... &lt;/P&gt;&lt;P&gt;What if you unlock it twice? &lt;/P&gt;&lt;P&gt;After Unlock, try to check if it's locked with &lt;/P&gt;&lt;P&gt;temp=ActiveDocument.Fields("CITY").GetLocked&lt;/P&gt;&lt;P&gt;if temp then msgbox("Locked!")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use this: &lt;/P&gt;&lt;P&gt;temp=ActiveDocument.Fields("CITY").CanUnlock&lt;/P&gt;&lt;P&gt;if temp then msgbox("Can be unlocked")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw this method on the API guide, but I'm not sure about the results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This tests are very interesting, please tell us your results. &lt;/P&gt;&lt;P&gt;We can think in some workaround if it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 17:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310190#M711635</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-30T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310191#M711636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afirmative:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added both messages after the lock instructions and when I run it in the server I get the messages "Locked" "Can't be unlocked"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very strange!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 17:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310191#M711636</guid>
      <dc:creator />
      <dc:date>2011-05-30T17:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310192#M711637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment this issue has been reported as a possible bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 10:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310192#M711637</guid>
      <dc:creator />
      <dc:date>2011-06-01T10:48:21Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310193#M711638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! &lt;/P&gt;&lt;P&gt;I have decided to use this macro to hide confidential info from some users... long story. The macro works great in QV developer! Many thanks for which.&lt;/P&gt;&lt;P&gt;Unfortunately, the macro that is supposed to add actions when entering the tab and remove them after leaving the tab works in QV Desktop only. When I try it on server, it is not executed properly (cannot add actions, but the rest of it is executed properly (I tried with message boxes)).&lt;/P&gt;&lt;P&gt;Is it confirmed to be a bug, or still under investigation? Any patch available so far?&lt;/P&gt;&lt;P&gt;It is very important for me to disable "unlock and clear" only on a single tab, so that the user sees only data which is selected by a trigger/macro and to be unable to clear this selection. On all other tabs the user should be able to manipulate the same field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 14:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310193#M711638</guid>
      <dc:creator />
      <dc:date>2011-08-11T14:54:51Z</dc:date>
    </item>
    <item>
      <title>Macro to disable triggers</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310194#M711639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the part of the documentation the QlikView Support used to prove that this is not a bug, but rather a work as designed functionality:&lt;/P&gt;&lt;P&gt;"29.2 Macro functionality limitations&lt;/P&gt;&lt;P&gt;Functionality that will normally work well in macros in the QlikView Server environment&lt;/P&gt;&lt;P&gt;with any type of client is:&lt;/P&gt;&lt;P&gt;• Logical operations such as clearing or selecting in fields&lt;/P&gt;&lt;P&gt;• Operations related to variables&lt;/P&gt;&lt;P&gt;The following types of functionality are not to be used in the QlikView Server environment&lt;/P&gt;&lt;P&gt;, as they may cause unexpected results:&lt;/P&gt;&lt;P&gt;• Layout operations acting on the properties of sheets and sheet objects via&lt;/P&gt;&lt;P&gt;SetProperties&lt;/P&gt;&lt;P&gt;• Operations changing document or user settings&lt;/P&gt;&lt;P&gt;• All operations related to the script, including Reload&lt;/P&gt;&lt;P&gt;• Data reduction operations, e.g. ReduceData&lt;/P&gt;&lt;P&gt;• Operations such as Save and Open document "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will save you time and efforts! &lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 09:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-disable-triggers/m-p/310194#M711639</guid>
      <dc:creator />
      <dc:date>2011-08-16T09:55:26Z</dc:date>
    </item>
  </channel>
</rss>

