<?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: Trigger on field canceling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128744#M887061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try just removing the else part '*', like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; if(OSUser()='db\526','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;1&lt;/SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;User A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OSUser()='db\534','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;2&lt;/SPAN&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;User B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 09:06:48 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-09-01T09:06:48Z</dc:date>
    <item>
      <title>Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128742#M887059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection trigger on a field &lt;SPAN style="color: #993366;"&gt;EXAMPLE_FIELD&lt;/SPAN&gt; which sets the field value to a specific value depending on the current login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: &lt;SPAN style="color: #00ccff;"&gt;User A&lt;/SPAN&gt; logs in and get &lt;SPAN style="color: #993366;"&gt;EXAMPLE_FIELD&lt;/SPAN&gt; = 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ccff;"&gt;User B&lt;/SPAN&gt; logs in and get &lt;SPAN style="color: #993366;"&gt;EXAMPLE_FIELD&lt;/SPAN&gt; = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ensures that the current user can't leave the selection on &lt;SPAN style="color: #993366;"&gt;EXAMPLE_FIELD&lt;/SPAN&gt; because everytime they try to change it it changes back to the configured one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this with multiple if statements as shown below:&lt;/P&gt;&lt;P&gt;SET exampleFieldValue = &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OSUser()='db\526','&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="color: #00ccff;"&gt;User A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OSUser()='db\534','&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="color: #00ccff;"&gt;User B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '*'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code sets the selection of &lt;SPAN style="color: #993366;"&gt;EXAMPLE_FIELD&lt;/SPAN&gt; depending on the current user. If &lt;SPAN style="color: #00ccff;"&gt;User C&lt;/SPAN&gt; logs in, they get the selection * so everything is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Problem: Now I want every other user than &lt;SPAN style="color: #00ccff;"&gt;A&lt;/SPAN&gt; and &lt;SPAN style="color: #00ccff;"&gt;B&lt;/SPAN&gt; to freely chose the selection. The code above sets the selection always back to ALL SELECT because of the *.&lt;/P&gt;&lt;P&gt;Is there a possibility to not change the current selection on the last else statement?&lt;/P&gt;&lt;P&gt;So if &lt;SPAN style="color: #00ccff;"&gt;User C&lt;/SPAN&gt; selects &lt;SPAN style="color: #ff0000;"&gt;3&lt;/SPAN&gt; in &lt;SPAN style="color: #993366;"&gt;EXAMPLE_FIELD&lt;/SPAN&gt; it will remain on 3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone knows how to solve this problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128742#M887059</guid>
      <dc:creator>emotyp101</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128743#M887060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried removing the '*' and leaving it as ''?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128743#M887060</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2016-09-01T09:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128744#M887061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try just removing the else part '*', like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; if(OSUser()='db\526','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;1&lt;/SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;User A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OSUser()='db\534','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;2&lt;/SPAN&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;User B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128744#M887061</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-09-01T09:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128745#M887062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not working too. It counts as an empty selection then.&lt;/P&gt;&lt;P&gt;So if you select '1' in EXAMPLE_FIELD the selection gets cleared instantly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128745#M887062</guid>
      <dc:creator>emotyp101</dc:creator>
      <dc:date>2016-09-01T09:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128746#M887063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to stop user A and B from selecting other values and allow any selection for C? If so, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(OSUser()='db\526','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;1&lt;/SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;User A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OSUser()='db\534','&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;2&lt;/SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;User B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt; &lt;SPAN style="color: #ff0000;"&gt;'('&amp;amp;GetfieldSelections(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EXAMPLE_FIELD, '|')&amp;amp;')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128746#M887063</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-09-01T09:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128747#M887064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this does not work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection gets cleared after selection a value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128747#M887064</guid>
      <dc:creator>emotyp101</dc:creator>
      <dc:date>2016-09-01T09:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128748#M887065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;// EDIT //&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now tried to put in&amp;nbsp;&amp;nbsp; getfieldselections(EXAMPLE_FIELD)&amp;nbsp;&amp;nbsp; as last else statement.&lt;/P&gt;&lt;P&gt;This works if just one value is selected in the listbox. If I select multiple values it jumps back to a cleared selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to get this working with multiple selections in the listbox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128748#M887065</guid>
      <dc:creator>emotyp101</dc:creator>
      <dc:date>2016-09-01T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on field canceling</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128749#M887066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works!&lt;/P&gt;&lt;P&gt;Thank you so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 10:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-on-field-canceling/m-p/1128749#M887066</guid>
      <dc:creator>emotyp101</dc:creator>
      <dc:date>2016-09-01T10:11:00Z</dc:date>
    </item>
  </channel>
</rss>

