<?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: Clear selection in multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149062#M462971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the clear button is not an option for what you are trying to do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 15:34:56 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2016-08-08T15:34:56Z</dc:date>
    <item>
      <title>Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149061#M462970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi everyone,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm Trying to set a triger that Clears selections in multiple fields in many places in my QV model.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Is there a way I can do this without defining a "clear field" action to each field? Maybe some kind of a concatenated string that can clear multiple fields with only one "clear field" action.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I know macro can solve this but i rather not to use it...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149061#M462970</guid>
      <dc:creator />
      <dc:date>2016-08-08T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149062#M462971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the clear button is not an option for what you are trying to do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149062#M462971</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-08-08T15:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149063#M462972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, clear button can clear one field or all fields - not multiple&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149063#M462972</guid>
      <dc:creator />
      <dc:date>2016-08-08T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149064#M462973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;folow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 17:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149064#M462973</guid>
      <dc:creator />
      <dc:date>2016-08-08T17:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149065#M462974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;with a combination of &lt;STRONG&gt;clear all&lt;/STRONG&gt; and &lt;STRONG&gt;lock field&lt;/STRONG&gt; you can achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: you have a field called myField that shouldn't be cleared.&lt;/P&gt;&lt;P&gt;Do as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create button&lt;UL&gt;&lt;LI&gt;Actions&lt;UL&gt;&lt;LI&gt;Lock field for myField&lt;/LI&gt;&lt;LI&gt;Clear all&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Unlock field for myField&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Kind regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 17:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149065#M462974</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-08T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149066#M462975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Santiago,&lt;/P&gt;&lt;P&gt;This way I have to add an action to each field I want to lock, isn't it so? This is what I want to avoid from&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 06:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149066#M462975</guid>
      <dc:creator />
      <dc:date>2016-08-09T06:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149067#M462976</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 think that you will always have to mention every field that you want to lock, but maybe this suits you better.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create button&lt;UL style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI style="margin-top: 0.5ex; margin-bottom: 0.5ex; font-weight: inherit; font-style: inherit; font-family: inherit; list-style-type: inherit;"&gt;Actions&lt;UL style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI style="margin-top: 0.5ex; margin-bottom: 0.5ex; font-weight: inherit; font-style: inherit; font-family: inherit; list-style-type: inherit;"&gt;Call LockFields Macro&lt;/LI&gt;&lt;LI&gt;Clear all&lt;/LI&gt;&lt;LI&gt;Call UnLockFields Macro&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your module you create two macros as follows:&lt;/P&gt;&lt;P&gt;Sub &lt;SPAN style="font-size: 13.3333330154419px;"&gt;LockFields &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; ActiveDocument.Fields("Field1").Lock&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; ActiveDocument.Fields("Field2").Lock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub &lt;SPAN style="font-size: 13.3333330154419px;"&gt;UnLockFields &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; ActiveDocument.Fields("Field1").&lt;/SPAN&gt;UnLock&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; ActiveDocument.Fields("Field2").&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;UnLock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 11:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149067#M462976</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-09T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149068#M462977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe this one is better for you.&lt;/P&gt;&lt;P&gt;Create a variable with the field names to lock\unlock:&lt;/P&gt;&lt;P&gt;v.Fields = 'FIELD1|FIELD2|FIELD3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module code:&lt;/P&gt;&lt;P&gt;'Gets the value from specific variable passed through varName parameter&lt;/P&gt;&lt;P&gt;FUNCTION getVariableValue(varName) &lt;/P&gt;&lt;P&gt;&amp;nbsp; set v = ActiveDocument.Variables(varName) &lt;/P&gt;&lt;P&gt;&amp;nbsp; getVariableValue = v.GetContent.String&lt;/P&gt;&lt;P&gt;END FUNCTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Locks all fields in the v.Fields Variable&lt;/P&gt;&lt;P&gt;Sub Lock&lt;/P&gt;&lt;P&gt; fields =split( getVariableValue("v.Fields"),"|")&lt;/P&gt;&lt;P&gt; for each field in fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields(field).Lock&lt;/P&gt;&lt;P&gt; next&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'UnLocks all fields in the v.Fields Variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub UnLock&lt;/P&gt;&lt;P&gt; fields =split( getVariableValue("v.Fields"),"|")&lt;/P&gt;&lt;P&gt; for each field in fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields(field).Unlock&lt;/P&gt;&lt;P&gt; next&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you'll only have to change your variable.&lt;/P&gt;&lt;P&gt;Please let me know if this helps you solving your issue.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 12:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149068#M462977</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-09T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149069#M462978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, If you don't need to use the macro than you need to add a action trigger for each field and specify&amp;nbsp; all the values that need to be cleared ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 12:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149069#M462978</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-08-09T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clear selection in multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149070#M462979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;this can be annoying, i wrote a code that will only clear the fields that are selected, you can check this qvw, this also allows you to just list those fields in an island instead of repeating code. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 13:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-selection-in-multiple-fields/m-p/1149070#M462979</guid>
      <dc:creator>yakir_manor</dc:creator>
      <dc:date>2017-10-08T13:53:11Z</dc:date>
    </item>
  </channel>
</rss>

