<?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: Field triggers for specific sheet only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542163#M439525</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for the hint. That seems like it could be a solution.&lt;/P&gt;&lt;P&gt;Nevertheless though I would need two Macros then as I would need "Field1" to be cleared when "Field2" is selected but also "Field2" to be cleared when "Field1" is selected.&lt;/P&gt;&lt;P&gt;So I would need to put a Macro on both fields in order to each clear the other one if selected.&lt;/P&gt;&lt;P&gt;But that doesn't seem to work. Somehow I can always only create one Macro and if I try to use a different one on the other field&amp;nbsp; the script of both macros will always automatically stay the same.&lt;/P&gt;&lt;P&gt;Am I missing something here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 09:20:03 GMT</pubDate>
    <dc:creator>tobiasaechter</dc:creator>
    <dc:date>2019-02-11T09:20:03Z</dc:date>
    <item>
      <title>Field triggers for specific sheet only</title>
      <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1541117#M439443</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to set a field trigger only on a specific sheet?&lt;/P&gt;&lt;P&gt;What I want to achieve is to have a field (Field 1) which is used in two different sheets.&lt;/P&gt;&lt;P&gt;In sheet A, Field 1 should be cleared when Field 2 is selected. In sheet B, Field 1 should stay selected when Field 2 is selected.&lt;/P&gt;&lt;P&gt;Is this possible in Qlikview?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1541117#M439443</guid>
      <dc:creator>tobiasaechter</dc:creator>
      <dc:date>2019-02-07T16:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field triggers for specific sheet only</title>
      <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1541931#M439501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use a macro attached to trigger action on the field that clears the field (or not) depending on the sheet;&lt;/P&gt;&lt;PRE&gt;Public Sub ConditionalClear()

	if ActiveDocument.ActiveSheet.GetProperties.Name="SheetA" then
	
		ActiveDocument.Fields("Field1").Clear
		
	end if
	
End Sub&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190209_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5614i9C68FCD534C264ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190209_2.png" alt="20190209_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attaching my QVW, although personal edition so you may not be able to open.&lt;/P&gt;&lt;P&gt;You probably want to test this approach a lot, as the macros can be flaky/environment dependent.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 16:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1541931#M439501</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-02-09T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Field triggers for specific sheet only</title>
      <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542163#M439525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for the hint. That seems like it could be a solution.&lt;/P&gt;&lt;P&gt;Nevertheless though I would need two Macros then as I would need "Field1" to be cleared when "Field2" is selected but also "Field2" to be cleared when "Field1" is selected.&lt;/P&gt;&lt;P&gt;So I would need to put a Macro on both fields in order to each clear the other one if selected.&lt;/P&gt;&lt;P&gt;But that doesn't seem to work. Somehow I can always only create one Macro and if I try to use a different one on the other field&amp;nbsp; the script of both macros will always automatically stay the same.&lt;/P&gt;&lt;P&gt;Am I missing something here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 09:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542163#M439525</guid>
      <dc:creator>tobiasaechter</dc:creator>
      <dc:date>2019-02-11T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field triggers for specific sheet only</title>
      <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542529#M439545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not sure I understand what you are saying. If I add the following (and ad triggers as appropriate) it seems to work&amp;nbsp;(I think …);&lt;/P&gt;&lt;PRE&gt;Public Sub ConditionalClear1()

	if ActiveDocument.ActiveSheet.GetProperties.Name="SheetA" then
	
		ActiveDocument.Fields("Field1").Clear

	end if
	
End Sub

Public Sub ConditionalClear2()

	if ActiveDocument.ActiveSheet.GetProperties.Name="SheetA" then
	
		ActiveDocument.Fields("Field2").Clear
		
	end if
	
End Sub&lt;/PRE&gt;&lt;P&gt;QVW attached again, let me know if it helps or I am missing something.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 19:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542529#M439545</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-02-11T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Field triggers for specific sheet only</title>
      <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542713#M439555</link>
      <description>Thanks Chris,&lt;BR /&gt;&lt;BR /&gt;it's working now.&lt;BR /&gt;I never used macros before so I didn't understand that I can write two substatements under each other.</description>
      <pubDate>Tue, 12 Feb 2019 07:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1542713#M439555</guid>
      <dc:creator>tobiasaechter</dc:creator>
      <dc:date>2019-02-12T07:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field triggers for specific sheet only</title>
      <link>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1543246#M439595</link>
      <description>&lt;P&gt;Glad it is working. I don't find it the most intuitive thing to work with.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-triggers-for-specific-sheet-only/m-p/1543246#M439595</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-02-12T20:06:55Z</dc:date>
    </item>
  </channel>
</rss>

