<?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: How to notify user if a selection was changed from default in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1562111#M508332</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could try the attached.&lt;/P&gt;&lt;P&gt;Basically 2 macros accessing a variable, one triggered with the button and one on any selection change. The one on the button resets the counter. The text box the shows 'Button Selection'/'Selection Changed' depending on the variable;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190327_1.png" style="width: 589px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8959i39237AEC9864B380/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190327_1.png" alt="20190327_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190327_2.png" style="width: 572px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8960i580051ED35141DAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190327_2.png" alt="20190327_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Sub Reset()
	ActiveDocument.Variables("vFilterState").SetContent 0, true
End Sub

Sub Increment()
	lFilterState=ActiveDocument.Variables("vFilterState").GetContent.String+1
	ActiveDocument.Variables("vFilterState").SetContent lFilterState, true
End Sub&lt;/PRE&gt;&lt;P&gt;Probably needs some tweaking &amp;amp; the variable reset on opening, but may help.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 20:40:12 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2019-03-27T20:40:12Z</dc:date>
    <item>
      <title>How to notify user if a selection was changed from default</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1561876#M508331</link>
      <description>&lt;P&gt;This is my problem today:&lt;/P&gt;&lt;P&gt;I created an app with an action in a button that does a selection based on the value of a variable.&lt;/P&gt;&lt;P&gt;Let's say the variable is "Age" and the field is "Employee". In an input-box, the user enters any value for "Age" and then the button selects all employees where&amp;nbsp;"employee_age" is below "Age".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we have selected a group of employees to start from. Of course the user can change this selection manually.&lt;/P&gt;&lt;P&gt;Now the point:&lt;/P&gt;&lt;P&gt;How can I show the user that his selection differs from the original selection, made via the button?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that my original app is significantly more complex. I just want to avoid that the user thinks the optimized selection is still used while for some reason, it has changed. Unfortunately it is not just the number of selections or a sum, but the exact list of selections in a field, which may be in the range of some 10k distinct values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1561876#M508331</guid>
      <dc:creator>michael_klix</dc:creator>
      <dc:date>2024-11-16T21:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify user if a selection was changed from default</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1562111#M508332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could try the attached.&lt;/P&gt;&lt;P&gt;Basically 2 macros accessing a variable, one triggered with the button and one on any selection change. The one on the button resets the counter. The text box the shows 'Button Selection'/'Selection Changed' depending on the variable;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190327_1.png" style="width: 589px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8959i39237AEC9864B380/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190327_1.png" alt="20190327_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190327_2.png" style="width: 572px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8960i580051ED35141DAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190327_2.png" alt="20190327_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Sub Reset()
	ActiveDocument.Variables("vFilterState").SetContent 0, true
End Sub

Sub Increment()
	lFilterState=ActiveDocument.Variables("vFilterState").GetContent.String+1
	ActiveDocument.Variables("vFilterState").SetContent lFilterState, true
End Sub&lt;/PRE&gt;&lt;P&gt;Probably needs some tweaking &amp;amp; the variable reset on opening, but may help.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 20:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1562111#M508332</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-03-27T20:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify user if a selection was changed from default</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1562255#M508333</link>
      <description>Hi Chris,&lt;BR /&gt;Thanks for your thoughts. Unfortunately, we cannot use macros on our server and there is a second limitation that I did forget to mention: The solution must be portable to SENSE, where we do not even have triggers as far as I am aware ...&lt;BR /&gt;Just had a totally different idea. Maybe we can simply use something like a "lock selection" function managed by a button and standard variables? As soon as the user presses the button "define optimal selection", all selections are made and locked. If the user wants to change the selection, the button changes to "unlock optimal selection" and the user can now make changes. As long as the selection is Unlocked, a variable "v_locked" is 0 and displays a message "manual selection, potentially sub-optimal ! ".&lt;BR /&gt;The question here would be...can we lock a field in Sense like we can in View?&lt;BR /&gt;- Keep qliking -&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Mar 2019 07:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-notify-user-if-a-selection-was-changed-from-default/m-p/1562255#M508333</guid>
      <dc:creator>michael_klix</dc:creator>
      <dc:date>2019-03-28T07:52:32Z</dc:date>
    </item>
  </channel>
</rss>

