<?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: Can I disable user unlock a locked field in QV? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296383#M109936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;BR /&gt;Hi, how can you lock the field when document opened in the first time.?&lt;/P&gt;&lt;P&gt;Your sample is good. But I want to add it to my formal qvw which has a trigger when document opened the field is selected. But it doen't work, it seems these two triggers are not work well together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 06:22:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-13T06:22:56Z</dc:date>
    <item>
      <title>Can I disable user unlock a locked field in QV?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296381#M109934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&amp;nbsp; I have a locked field for somepurpose which don't want user unlock it, could I?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 00:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296381#M109934</guid>
      <dc:creator />
      <dc:date>2011-05-13T00:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can I disable user unlock a locked field in QV?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296382#M109935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've locked the field and included triggers (must be in this order) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the field, onUnlock event I include lock (so, when it's unlocked I lock it back!) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was that the user could use the clear button with the option with the option 'Unlock and Clear' &lt;/P&gt;&lt;P&gt;Then, on the same field I included on the OnSelet Action: &lt;/P&gt;&lt;P&gt;1 - Back (so I go back to the point before the clear button - this will lock my field back too) &lt;/P&gt;&lt;P&gt;2 - Clear (since my field is locked and the user tried to clear, I use a clear, protecting the locked field) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please, check attachment. Tell me if it's possible to unlock it somehow ( of course, you can remove the trigger, but this would not be possible on a client - server environment) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works in your case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 03:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296382#M109935</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-13T03:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I disable user unlock a locked field in QV?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296383#M109936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;BR /&gt;Hi, how can you lock the field when document opened in the first time.?&lt;/P&gt;&lt;P&gt;Your sample is good. But I want to add it to my formal qvw which has a trigger when document opened the field is selected. But it doen't work, it seems these two triggers are not work well together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 06:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296383#M109936</guid>
      <dc:creator />
      <dc:date>2011-05-13T06:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I disable user unlock a locked field in QV?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296384#M109937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it took some time and some help from Rakesh here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/118015#118015"&gt;http://community.qlik.com/message/118015#118015&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following sub can recreate the actions I put on the field on my first attachment. &lt;/P&gt;&lt;P&gt;So, whatever you need you can just execute and after you just call this: &lt;/P&gt;&lt;P&gt;It plays with the field TEAM. I see that i can be optimized but I works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub addAction&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'for i=0 to actions.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' msgbox "Action types: " &amp;amp; actions.item(i).Type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld.setproperties fp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld2=ActiveDocument.GetField("TEAM")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fp2 = fld2.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set actions2=fp2.OnUnlockActionItems&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIONs2.ADD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions2.item(0).type = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIONs2.ADD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actions2.item(1).type = 28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'for i=0 to actions.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' msgbox "Action types: " &amp;amp; actions.item(i).Type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld2.setproperties fp2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld2.lock&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;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:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296384#M109937</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-23T03:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I disable user unlock a locked field in QV?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296385#M109938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice little VBA block -- So, if you deploy that on a server, and then to an iPad, does it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2011 00:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296385#M109938</guid>
      <dc:creator />
      <dc:date>2011-05-28T00:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I disable user unlock a locked field in QV?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296386#M109939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, for the fist sample app, I only used action so it should more all right.&lt;/P&gt;&lt;P&gt;For the second one, I would need the onOpen trigger and some macros, then I'm not so sure if it would work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to know if there would be a difference for macro behaviors in iPad client and QV running on ajax on safari browsers. &lt;/P&gt;&lt;P&gt;If you are able to try it, please let me know the results. &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 05:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-disable-user-unlock-a-locked-field-in-QV/m-p/296386#M109939</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-30T05:21:56Z</dc:date>
    </item>
  </channel>
</rss>

