<?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: Triggers / locked field / clear in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97651#M15664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Due to the sensitivity of the document, I can't. The file size is also 4GB so wouldn't upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to recreate it in a blank QVW but it's not reacting in the same way. It's very strange why it's behaving this way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2018 07:12:54 GMT</pubDate>
    <dc:creator>keithlawrence</dc:creator>
    <dc:date>2018-08-20T07:12:54Z</dc:date>
    <item>
      <title>Triggers / locked field / clear</title>
      <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97647#M15660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having difficulty with triggers and need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a trigger on a field (let's call it Field 1) that sets various variables. That field is locked but when Clear is selected, it performs the triggers as if the field is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1 = 'Yes' (Locked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actions behind Field 1 are set to:&lt;/P&gt;&lt;P&gt;Set Variable&lt;/P&gt;&lt;P&gt;Variable = vVariable1&lt;/P&gt;&lt;P&gt;Value = If(GetSelectedCount([Field 1])=0,0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is on both OnSelect and OnChange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if Field 1 is locked with a selection the variable is set to&lt;SPAN style="font-size: 10pt;"&gt; 0 when it should be a 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening and how can I stop it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97647#M15660</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2018-08-17T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Triggers / locked field / clear</title>
      <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97648#M15661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi keith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order is also important for the actions.&lt;/P&gt;&lt;P&gt;if you set your prefference Value = If(GetSelectedCount([Field 1])=0,0,1) this condition as first means it wil perform the first&lt;/P&gt;&lt;P&gt;2nd preference is lock filed means it will perform 2nd so make sure set the actions like your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97648#M15661</guid>
      <dc:creator>manoj217</dc:creator>
      <dc:date>2018-08-17T13:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Triggers / locked field / clear</title>
      <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97649#M15662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. The lock action is not part of the trigger as this is already in place before clear has been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event trigger purely sets variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why the field is being seen as clear when the lock is in place with a selection prior to the clear being pressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97649#M15662</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2018-08-17T13:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Triggers / locked field / clear</title>
      <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97650#M15663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload a qvw example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 03:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97650#M15663</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-20T03:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Triggers / locked field / clear</title>
      <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97651#M15664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Due to the sensitivity of the document, I can't. The file size is also 4GB so wouldn't upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to recreate it in a blank QVW but it's not reacting in the same way. It's very strange why it's behaving this way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 07:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97651#M15664</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2018-08-20T07:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Triggers / locked field / clear</title>
      <link>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97652#M15665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The source of this appears to an alternative state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is no alternative state, the behaviour works correctly. When an alternative state is present, it breaks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I have the triggers set to only work on &amp;lt;default state&amp;gt; it does not work. Not sure how I can get this fixed without taking the alternative state out of my app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 15:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggers-locked-field-clear/m-p/97652#M15665</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2018-08-20T15:00:13Z</dc:date>
    </item>
  </channel>
</rss>

