<?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 Lock/Unlock Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146874#M25365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a little confusion in your question, are you referring to Variables or Fields? If you are referring to fields then you can do the following in a macro:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YourFieldName").Lock&lt;/P&gt;&lt;P&gt;And to reverse it........&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YourFieldName").UnLock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you really are talking about Variables then you cannot lock them (as far as I am aware), but of course the content of variables is controlled by your app so you should simply avoid adding objects that allow the variable to be changed. You could create a macro that "remembers" the content of the variable and then resets it when you return to the first sheet.&lt;/P&gt;&lt;P&gt;Macro1 (to remember the value, can be triggered on leaving the sheet):&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("VariableNameToRememberVar1").SetContent ActiveDocument.Variables("Variable1").GetContent.String, true&lt;/P&gt;&lt;P&gt;Macro 2 (to reset the value, can be triggered on activating the sheet):&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("Variable1").SetContent ActiveDocument.Variables("VariableNameToRememberVar1").GetContent.String, true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2009 17:13:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-16T17:13:18Z</dc:date>
    <item>
      <title>Lock/Unlock Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146873#M25364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;here goes my 1st question in QlikView forum .&lt;/P&gt;&lt;P&gt;is it possible to localize lock/unlock selection? let me elaborate more - if we have 2 sheets, say TEST1 and TEST2. if i am on TEST1 and do my selection on variables, i don't values changes to happen in TEST2 sheet.&lt;/P&gt;&lt;P&gt;i think, by default, selection is GLOBAL in QlikView.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;_Balwant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 16:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146873#M25364</guid>
      <dc:creator />
      <dc:date>2009-06-16T16:41:06Z</dc:date>
    </item>
    <item>
      <title>Lock/Unlock Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146874#M25365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a little confusion in your question, are you referring to Variables or Fields? If you are referring to fields then you can do the following in a macro:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YourFieldName").Lock&lt;/P&gt;&lt;P&gt;And to reverse it........&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YourFieldName").UnLock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you really are talking about Variables then you cannot lock them (as far as I am aware), but of course the content of variables is controlled by your app so you should simply avoid adding objects that allow the variable to be changed. You could create a macro that "remembers" the content of the variable and then resets it when you return to the first sheet.&lt;/P&gt;&lt;P&gt;Macro1 (to remember the value, can be triggered on leaving the sheet):&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("VariableNameToRememberVar1").SetContent ActiveDocument.Variables("Variable1").GetContent.String, true&lt;/P&gt;&lt;P&gt;Macro 2 (to reset the value, can be triggered on activating the sheet):&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("Variable1").SetContent ActiveDocument.Variables("VariableNameToRememberVar1").GetContent.String, true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 17:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146874#M25365</guid>
      <dc:creator />
      <dc:date>2009-06-16T17:13:18Z</dc:date>
    </item>
    <item>
      <title>Lock/Unlock Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146875#M25366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question, you want selections on one sheet to not affect another sheet, even though the other sheet has the same fields.&lt;/P&gt;&lt;P&gt;That's really not how Qlikview works. As you say, selections are global in Qlikview. But I can think of several possible solutions. First, use two sets of data with different field names for the two sheets. Second, use two different applications instead of two sheets. Third, if you don't need to make selections on the same fields on the second sheet, use set analysis to ignore the selections in the fields on the first sheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 02:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lock-Unlock-Selection/m-p/146875#M25366</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-17T02:22:28Z</dc:date>
    </item>
  </channel>
</rss>

