<?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: Variables, Triggers and the Back button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244721#M495265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use the extension HideIt and remove the Back/Forward/Clear buttons. Problem solved in Ajax. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 14:50:03 GMT</pubDate>
    <dc:creator>jerrysvensson</dc:creator>
    <dc:date>2016-02-01T14:50:03Z</dc:date>
    <item>
      <title>Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244709#M495253</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;In my QVW, I'm using a trigger event to change the value of a variable when the selection changes. So, when I make a selection, the event triggers and the variable changes. So far, so good. My problem is with the back button: the first time I click on BACK the variable rolls back, and I need a second "Back" click to undo the original variable. This is not acceptable since the variable value is related to the selection, and a single "back" leaves an incorrect state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple attached xample might help:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - field MYFIELD, values 1,2,3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - variable MYVAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Objects: MYFIELD Listbox, and MYVAR Textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a ONSELECT trigger on Myfield, that sets MyVar as "=10*Myfield".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, select "1" on MyField. the event triggers and sets the MyVar as 10*1... so the TextBox displays "10". &lt;/P&gt;&lt;P&gt;Repeat with "2", same logic and the TextBox displays "20".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, if I click "back", the VAR is rolled back to "10" BUT NOT the Field. This results in having on-screen the value "2" still selected, but the textbox displays "10"..... obviously, not 10 times the selected value &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to avoid the "variable change" being inserted in the "back pile". Any other workaround would be also apreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I know i could set MyVar directly as an expression so that it evaluates automatically, without a trigger. The problem is, this formula is very complex, and the same value is used over 50 times in a single sheet. For some reason QV does not cache the result, so it is evaluated 20 times in a single tab making the sheet unusable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 15:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244709#M495253</guid>
      <dc:creator>jcamps</dc:creator>
      <dc:date>2012-02-01T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244710#M495254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ideas? No way to change a variable's value without having it added to the "back queue"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I might try setting an inputfield instead, I have never done this and I don't know if it will have other issues (I need it running locally, and server-side both Plugin and AJAX...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any better ideas or have faced similar problems, please let me know, otherwise I'll let you know how the inputfield idea works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 21:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244710#M495254</guid>
      <dc:creator>jcamps</dc:creator>
      <dc:date>2012-02-04T21:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244711#M495255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this issue is affecting me as well the following link has it cofirmed as a bug. I am trying to track down if this has been fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/14259" title="http://community.qlik.com/thread/14259"&gt;http://community.qlik.com/thread/14259&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244711#M495255</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2012-08-16T18:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244712#M495256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone found a work around for this issue?&amp;nbsp; I need to be able to skip the variable changes in the back button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 20:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244712#M495256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-13T20:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244713#M495257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Too bad there seems to be no fix for this.&amp;nbsp; I was using this &lt;A href="http://www.bi-tv.com/how-to-add-start-date-and-end-date-calendar-objects-in-qlikview/"&gt;handy trick&lt;/A&gt; for date ranges.&amp;nbsp; I love how it will enter in the max and min dates based up your selections so I moved the functions from the particular date fields to the OnAnySelect document event trigger (External --&amp;gt; Set Variable) to manipulate vStartDate and vEndDate.&amp;nbsp; No matter what they select they will see the min and max date for their selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine my dismay that the Back button now takes a two-clicks.&amp;nbsp; This is going to be a tough call as to which functionality my users will be happier with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 19:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244713#M495257</guid>
      <dc:creator />
      <dc:date>2014-01-27T19:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244714#M495258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you solve this?&amp;nbsp;&amp;nbsp; I am using a field trigger to set 1 field = another.&amp;nbsp; The BACK button changes the second field but not the first.&amp;nbsp; I can't get a custom back button to work right either.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 19:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244714#M495258</guid>
      <dc:creator />
      <dc:date>2014-02-27T19:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244715#M495259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Does anyone know what going on with that bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 08:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244715#M495259</guid>
      <dc:creator />
      <dc:date>2014-08-05T08:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244716#M495260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone checked whether this has been resolved in the (available) QV12 version ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244716#M495260</guid>
      <dc:creator>omerfaruk</dc:creator>
      <dc:date>2016-01-07T10:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244717#M495261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't checked, but I bet it hasn't, see resolution for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="detailList" style="border: 0px; font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;&lt;TBODY style="background: transparent;"&gt;&lt;TR style="border: 0px; background: transparent;"&gt;&lt;TD class="first data2Col" colspan="2" style="font-family: Arial, Helvetica, sans-serif; padding-top: 3px; padding-bottom: 3px; border: 1px solid #ffffff; background: transparent;"&gt;&lt;/TD&gt;&lt;TD class="data2Col" colspan="2" style="font-family: Arial, Helvetica, sans-serif; padding-top: 3px; padding-bottom: 3px; border: 1px solid #ffffff; background: transparent;"&gt;&lt;H3 style="font-size: 15px; margin: 0 0 8px; color: #636363; background: transparent;"&gt;Resolution&lt;/H3&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; background: transparent;"&gt;&lt;TD class="last data2Col" colspan="2" style="font-family: Arial, Helvetica, sans-serif; padding-top: 3px; padding-bottom: 3px; border: 1px solid #ffffff; background: transparent;"&gt;This was reviewed by R&amp;amp;D with ID 41442 and is closed as working as designed.&lt;BR /&gt;The reason for this is that the current behavior (QV10 and QV11) is that the Back operation goes back one step from previously applied action.&lt;BR /&gt;This includes all actions even variables.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 14:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244717#M495261</guid>
      <dc:creator>jcamps</dc:creator>
      <dc:date>2016-01-07T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244718#M495262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;to R&amp;amp;D who close the ticket for that reason,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing wrong with the idea of allowing users go back one step backward from previously applied action (Though never needed this and really wonder if anyone needed..). However, allowing users to go back one step from previously applied "selection" is definitely the thing end users are &lt;STRONG&gt;more interested&lt;/STRONG&gt; in. Because end users are not interested in the &lt;SPAN style="text-decoration: underline;"&gt;variables changing at the back end&lt;/SPAN&gt; but interested in the selections &lt;SPAN style="text-decoration: underline;"&gt;they made&lt;/SPAN&gt; on the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 16:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244718#M495262</guid>
      <dc:creator>omerfaruk</dc:creator>
      <dc:date>2016-01-07T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244719#M495263</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 don't see why you're using a trigger in this instance, why not just set the MyVar variable to '= MyField * 10'. You can then get rid of the trigger and once done the back button works (as it's backing out the last change).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244719#M495263</guid>
      <dc:creator>hoodhill</dc:creator>
      <dc:date>2016-02-01T11:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244720#M495264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was just a simple example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Real use scenario would be, I have a large set of selections in a tab. Some are on screen (most common, like "YearMonth" or "Brand"), others appear / popup on demand when user clicks on "More selections" (more rarely used, say "YearWeek"). What I do, create the "popup" objects with visibility based on a variable, say vPopupEnabled, plus a button that switches that variable back and forth between 1 and zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the user does (just an example)&lt;/P&gt;&lt;P&gt;* Select in YearMonth&lt;/P&gt;&lt;P&gt;* ... &lt;/P&gt;&lt;P&gt;* Click on "Open selections"&lt;/P&gt;&lt;P&gt;* Select on YearWeek&lt;/P&gt;&lt;P&gt;* Click on "Close selections"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;* Click on "Open selections"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;* Change YearWeek&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;* Click on "Close selections"&lt;/P&gt;&lt;P&gt;* Switch to a different TAB where there are no popup selections &lt;/P&gt;&lt;P&gt;* Select on Brand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if the user clicks on "Back", he'd expect to navigate back his selections. What he sees is as he clicks on "back":&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;OK, remove selection on Brand&lt;/LI&gt;&lt;LI&gt;Does nothing (!!)&lt;/LI&gt;&lt;LI&gt;Back on YearWeek&lt;/LI&gt;&lt;LI&gt;Nothing again (!?!)&lt;/LI&gt;&lt;LI&gt;Nothing again (@#@!!)&lt;/LI&gt;&lt;LI&gt;Mmmmm, WTF... let me switck back to the other tab. Oh well, what's the popup doing open now?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that's clearer... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 13:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244720#M495264</guid>
      <dc:creator>jcamps</dc:creator>
      <dc:date>2016-02-01T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, Triggers and the Back button</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244721#M495265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use the extension HideIt and remove the Back/Forward/Clear buttons. Problem solved in Ajax. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 14:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-Triggers-and-the-Back-button/m-p/244721#M495265</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2016-02-01T14:50:03Z</dc:date>
    </item>
  </channel>
</rss>

