<?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: Problems with Field Event Trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801090#M1039468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;it's quite difficult explain solutions to these questions without an example application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You can create an Alternate State, say "State1" (Document properties&amp;gt; Alternate States...&amp;gt;Add).&lt;/P&gt;&lt;P&gt;In the objects in sheet1 set &amp;lt;inherited&amp;gt; while in objects in sheet2 set State1 (General tab of object properties, alternate state).&lt;/P&gt;&lt;P&gt;Now selections in sheet1 will be independent from those in sheet2.&lt;/P&gt;&lt;P&gt;You can do this just for Field A if there are two list boxes, on for each sheet.&lt;/P&gt;&lt;P&gt;Then you are able to add different sets of triggers for the two states (you will find State option as shown below)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="204" src="https://community.qlik.com/legacyfs/online/75074_pastedImage_1.png" style="width: 501px; height: 204.440322580645px;" width="501" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can add two actions OnSelect for FieldA:&lt;/P&gt;&lt;P&gt;- Select in field:&amp;nbsp; in field option insert FieldB and in Search String insert =FieldB&lt;/P&gt;&lt;P&gt;- Clear other fields: in field option insert FieldB.&lt;/P&gt;&lt;P&gt;For N/A values, you can add an if statement in searh string in order to handle this case.&lt;/P&gt;&lt;P&gt;Obviously, if you add alternate states, you must specify wich state you are considering, as in image above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this help you?&lt;/P&gt;&lt;P&gt;Please, ask again if it's not clear!&lt;/P&gt;&lt;P&gt;Elena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Jan 2015 20:13:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-11T20:13:47Z</dc:date>
    <item>
      <title>Problems with Field Event Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801089#M1039467</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 have 2 questions. I am using the personal edition so it would be helpful to copy and paste the codes here ( I can't open any attached Qlikview document).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have set up a field event that triggers certain actions upon selection of a field, say Field A, in Sheet 1. However, I would like to have another set of actions to be triggered upon selection of Field A in Sheet 2. Is this possible? The field event trigger seems to be universal throughout the entire document and I can't get the trigger to work differently based on the active sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Also on field event trigger. Is it possible to activate the field event trigger conditionally based on values of the fields?&lt;/P&gt;&lt;P&gt;E.g. My data looks like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Field A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Field B&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;apple&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;fruit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;orange&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;fruit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;USA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;country&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;pasta&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N/A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My field event trigger works like this. when Field A is selected, I would want the possible values from the corresponding Field B to be selected and clear the selection from Field A. (I need to do this because my other tables are linked to Field B and not Field A).&lt;/P&gt;&lt;P&gt;However, for cases where Field B is 'N/A', I would not want this field event to be triggered and the filter remains on Field A.&lt;/P&gt;&lt;P&gt;Is this possible? With a macro perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 09:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801089#M1039467</guid>
      <dc:creator />
      <dc:date>2014-12-30T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Field Event Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801090#M1039468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;it's quite difficult explain solutions to these questions without an example application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You can create an Alternate State, say "State1" (Document properties&amp;gt; Alternate States...&amp;gt;Add).&lt;/P&gt;&lt;P&gt;In the objects in sheet1 set &amp;lt;inherited&amp;gt; while in objects in sheet2 set State1 (General tab of object properties, alternate state).&lt;/P&gt;&lt;P&gt;Now selections in sheet1 will be independent from those in sheet2.&lt;/P&gt;&lt;P&gt;You can do this just for Field A if there are two list boxes, on for each sheet.&lt;/P&gt;&lt;P&gt;Then you are able to add different sets of triggers for the two states (you will find State option as shown below)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="204" src="https://community.qlik.com/legacyfs/online/75074_pastedImage_1.png" style="width: 501px; height: 204.440322580645px;" width="501" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can add two actions OnSelect for FieldA:&lt;/P&gt;&lt;P&gt;- Select in field:&amp;nbsp; in field option insert FieldB and in Search String insert =FieldB&lt;/P&gt;&lt;P&gt;- Clear other fields: in field option insert FieldB.&lt;/P&gt;&lt;P&gt;For N/A values, you can add an if statement in searh string in order to handle this case.&lt;/P&gt;&lt;P&gt;Obviously, if you add alternate states, you must specify wich state you are considering, as in image above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this help you?&lt;/P&gt;&lt;P&gt;Please, ask again if it's not clear!&lt;/P&gt;&lt;P&gt;Elena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 20:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801090#M1039468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-11T20:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Field Event Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801091#M1039469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;you can use an if with getactivesheet function (it returns the Sheet ID you find in General tab of shhet properties) in trigger event for the field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(wildmatch(GetActiveSheetId(), '*SH01*'), 'Match', 'Not match')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 21:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801091#M1039469</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-11T21:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Field Event Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801092#M1039470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Under Settings -&amp;gt; Document Properties -&amp;gt; Triggers,&lt;/P&gt;&lt;P&gt;Define two Field Event Triggers for Field A (both for OnSelect and OnChange&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75060_Capture.PNG" style="height: 258px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;2. First trigger for Field B&lt;/P&gt;&lt;P&gt;Set the action and search string as shown below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/75061_Capture1.PNG" style="height: 293px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;3. Second trigger for Field A&lt;/P&gt;&lt;P&gt;Set the action and search string as shown below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/75083_Capture2.PNG" style="height: 264px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You will see the following:&lt;/P&gt;&lt;P&gt;If you select 'apple' in Field A, 'fruit' will be selected in Field B and Field A will be cleared.&lt;/P&gt;&lt;P&gt;If you select 'pasta' in Field A, nothing will be selected in Field B and Field A will not be cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 04:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Field-Event-Trigger/m-p/801092#M1039470</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2015-01-12T04:05:19Z</dc:date>
    </item>
  </channel>
</rss>

