<?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 Function to find out whether a field is locked in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668824#M243101</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;I've a requirement to find out whether a field is currently locked, in order to display a Lock / Unlock button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously I can use a variable on a toggle, but this can be foxed by a user locking or unlocking the selection themselves without using the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There doesn't seem to be any way using GetCurrentSelections() to discern if a field is locked or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got a clever way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 12:33:38 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2014-09-10T12:33:38Z</dc:date>
    <item>
      <title>Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668824#M243101</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;I've a requirement to find out whether a field is currently locked, in order to display a Lock / Unlock button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously I can use a variable on a toggle, but this can be foxed by a user locking or unlocking the selection themselves without using the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There doesn't seem to be any way using GetCurrentSelections() to discern if a field is locked or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got a clever way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668824#M243101</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-09-10T12:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668825#M243102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is macro an option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;temp=ActiveDocument.Fields("Member").GetLocked&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if temp then msgbox("Locked!")&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668825#M243102</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-10T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668826#M243103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I'm not sure how I can apply that to a show hide criteria on a button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I would need to fire the macro on a trigger and set the value of a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm with &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt; on Macro's though - and try to avoid them at all costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668826#M243103</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-09-10T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668827#M243104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, i have the same requirement, could you solved it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 12:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668827#M243104</guid>
      <dc:creator />
      <dc:date>2015-08-18T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668828#M243105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never actually tried implementing the Macro code in the end.&amp;nbsp; The requirement went away instead.&amp;nbsp; It would appear there is no easy way of doing this - but a macro fired on change on that field to set a variable with the current lock state should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 13:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668828#M243105</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-08-18T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668829#M243106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'll try , Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 07:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668829#M243106</guid>
      <dc:creator />
      <dc:date>2015-08-19T07:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668830#M243107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you find it annoying when you are searching for a solution for something, and the only thing you can find is yourself asking the same question three years before!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just bumping this thread up the queue, in case there is a new function in V12 that gives this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 14:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668830#M243107</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-09-20T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668831#M243108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe that there is a function which could be used for it. But maybe it could be implemented with a multi-step approach with the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- read the field-selections into a variable and prevent an update for it afterwards maybe with a second variable and if-loop&lt;/P&gt;&lt;P&gt;- fire a selection-action to this field with = null() which would normally clear the field unless it is locked&lt;/P&gt;&lt;P&gt;- compare the first variable with the current selection of this field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not tested just an idea but maybe it could be made workable in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668831#M243108</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-09-20T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668832#M243109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought about something like that, but this would have to fire all the time and feels like it could get a bit heavy on CPU, just to have a toggle button that goes between Locked and Unlocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other thought was expanding on Treseco's variable code, having a macro that sets a variable to true or false.&amp;nbsp; This could get triggered on every selection change.&amp;nbsp; Again, I'm not sure if triggering a macro that frequently would be a good thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivered without a toggle, just a button to lock and then the unlock is done through current selections (only had the one day on site to deliver a solution).&amp;nbsp; Feels like there should be a better way though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to finally meet you last week, by the way.&amp;nbsp; Hope your travels back went smoothly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 19:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668832#M243109</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-09-20T19:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668833#M243110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes all the travels were quite smoothly and the weekend in Copenhaven was really great. Great too, was to meet you and all the other Luminaries there in Lund - it was very special.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is another way to get the information if a field is locked or not. Within the xml-header of the qvw the various states of the fields are stored. This meant this information could be available while opening the qvw but I'm not sure if you could fetch any changes to them without storing the qvw again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how qlik handled such changes to the properties - just in RAM during the run-time or puffering them into any temp-file or maybe within the prj-folder (whereby I believe they are updated through the storing, too). But maybe there are some options to them within Easter Egg ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldDescription:&lt;/P&gt;&lt;P&gt;LOAD InternalNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsSystem,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsHidden,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsSemantic,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DistinctOnly,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cardinal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalCount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PossibleCount_OBSOLETE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HasInfo_OBSOLETE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsLocked,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AlwaysOneSelected,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AndMode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsNumeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_DocumentSummary_3E3ED09C8BC69525,&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: DocumentSummary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_FieldDescription_8942ED1DAD568474&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: DocumentSummary/FieldDescription&lt;/P&gt;&lt;P&gt;FROM [QVW.qvw] (XmlSimple, Table is [DocumentSummary/FieldDescription]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 07:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668833#M243110</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-09-21T07:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668834#M243111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what the IsLocked or AlwaysOneSelected flag would do in the context of field settings in the QVD.&amp;nbsp; Perhaps it is a hint to what should happen with that field if it is later created as a list box.&amp;nbsp; If the QVD was created from a load script that would not be possible to set these flags (as far as I know).&amp;nbsp; Perhaps it only kicks in if you export a QVD from the UI, rather than the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One only &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;&amp;nbsp; could answer, I suspect...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 07:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668834#M243111</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-09-21T07:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668835#M243112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attached document&amp;nbsp; a macro to get the list of locked fields and its documentacion.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="juanc-mm-2018-09-13_133047.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213470_juanc-mm-2018-09-13_133047.jpg" style="height: 393px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 11:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668835#M243112</guid>
      <dc:creator>juan_c_martinez</dc:creator>
      <dc:date>2018-09-13T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668836#M243113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this got necro-bumped, and it's kind of interesting, I figure I may as well ask.. why check the lock state in the first place? There are field event triggers for OnLock and OnUnlock, and they're catch-all (they will trigger when the field is locked by an action, a manual lock, or a "Lock all"). You can use these with whatever action you prefer - minimize/maximize, set variable, or whatever else fits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not technically the same thing as checking the state, but it feels like this achieves the same thing without the need for a macro or long-form workarounds that impact performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is something that was added semi-recently, but it feels like these triggers have been around for a while.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668836#M243113</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2018-09-13T12:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668837#M243114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shoham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;True if the fields you can track lock status are &lt;SPAN lang="en"&gt;known&lt;/SPAN&gt;, but if not, the evens lock or unlock field can’t set for all fields in the model. This macro operates for any field in the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 13:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668837#M243114</guid>
      <dc:creator>juan_c_martinez</dc:creator>
      <dc:date>2018-09-13T13:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668838#M243115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-19141" title="https://community.qlik.com/docs/DOC-19141"&gt;https://community.qlik.com/docs/DOC-19141&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't take more than minor customization and while it requires a macro, you only have to use it once in developer mode, so this is AJAX-friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I can think of to stick with a macro solution is if you are dealing with multiple fields being locked and you need to know all of them and actually use those field names in actions. In that case, it might be a cleaner approach than using variables - but even then, I think variables would get the job done. For the use case described above - knowing if a single field is locked - the field event trigger seems very appropriate. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/668838#M243115</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2018-09-13T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function to find out whether a field is locked</title>
      <link>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/1588942#M443403</link>
      <description>&lt;P&gt;The following is technically also not exactly what you were looking for, but might just cover what the user actually wanted&lt;/P&gt;&lt;P&gt;It will contain a macro though &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was also trying to show an lock/unlock button in dependence of the lock state. Then I realized, that what we actually need is the ability to unlock, when it is locked and to lock when it is unlocked, right? And the field is shown right there next to the button anyway, so the lock state itself is in plain sight.&lt;/P&gt;&lt;P&gt;So I switched one button with a toggle functionality. The macro in the background will check if the field is already locked and unlock it, if it is and lock it, if it isn't.&amp;nbsp;It is rather simple, but here it is anyway&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;sub ToggleFieldLock(fieldName)
	' get the field to work on
	set field = ActiveDocument.Fields(fieldName)
	
	' if it is already locked
	if(field.GetLocked) then
		' we want to unlock it
		field.Unlock
	else
		' otherwise we lock it now
		field.Lock
	end if
end sub&lt;/LI-CODE&gt;&lt;P&gt;Sandro&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 10:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-to-find-out-whether-a-field-is-locked/m-p/1588942#M443403</guid>
      <dc:creator>krumbein</dc:creator>
      <dc:date>2019-06-06T10:54:08Z</dc:date>
    </item>
  </channel>
</rss>

