<?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: AngularJS-based visualization extensions, validated events gets fired multiple times in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91495#M1296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Erik,&lt;/P&gt;&lt;P&gt;ok this makes sense that the validated event is fired when the sheet is opened and a selection is done. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/check.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What confuses me is when I switch for example 3 times between sheet 1 &amp;lt;-&amp;gt; sheet2 (step 5 and 6) and then go back to sheet 1 and make ONE selection the validated event gets fired 3 times ( in general the number of switching between the sheets + 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understand should the validated event be fired only 2 times (sheet opened + data ready).&lt;/P&gt;&lt;P&gt;This is realy bad for large computations inside &lt;SPAN style="color: #fd971f; font-style: italic;"&gt;$scope&lt;/SPAN&gt;.component.model.Validated.&lt;SPAN style="color: #a6e22e;"&gt;bind. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is there a method to prevent this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217214_Unbenannt3.PNG" style="height: 72px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 15:17:53 GMT</pubDate>
    <dc:creator>fduchmann</dc:creator>
    <dc:date>2018-10-31T15:17:53Z</dc:date>
    <item>
      <title>AngularJS-based visualization extensions, validated events gets fired multiple times</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91493#M1294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the &lt;STRONG&gt;02-AngularJS-Basics Extension&lt;/STRONG&gt; from &lt;A href="https://github.com/stefanwalther/qliksense-extension-tutorial/tree/master/Chapters-Source/part-02/02-AngularJS-Basics/src" title="https://github.com/stefanwalther/qliksense-extension-tutorial/tree/master/Chapters-Source/part-02/02-AngularJS-Basics/src"&gt;Stefan Walters Github Page&lt;/A&gt; and navigating between the sheets, the Validated Events gets fired &lt;STRONG&gt;mutiple times&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Steps to reproduce:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Download and Deploy the &lt;SPAN style="font-size: 13.3333px;"&gt;02-AngularJS-Basics Extension on the Desktop Version of Qlik Sense (September Version)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Add the function provided by the &lt;A href="https://help.qlik.com/en-US/sense-developer/September2018/Subsystems/Extensions/Content/Sense_Extensions/extensions-angular-events.htm"&gt;Qlik Sense Documentation &lt;/A&gt;‌to do something if the data is ready. (See picture 1)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Create a sheet with the extension on it (1), and a second sheet to navigate to (2)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Open Sheet 1 and open the Chrome Developer Tools&lt;/LI&gt;&lt;LI&gt;Navigate to Sheet 2&lt;/LI&gt;&lt;LI&gt;Navigate back to Sheet 1&lt;/LI&gt;&lt;LI&gt;Make a selection&lt;/LI&gt;&lt;LI&gt;--&amp;gt; &lt;STRONG&gt;Validated Events gets fired 2 times (Picture 2)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215583_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Picture 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/215584_Unbenannt2.PNG" style="height: 36px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Picture 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as far as I understand everything I write in this function (between the bind brackets) gets executed twice?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can the function be only executed once, when the data is ready?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 11:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91493#M1294</guid>
      <dc:creator>fduchmann</dc:creator>
      <dc:date>2018-10-10T11:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: AngularJS-based visualization extensions, validated events gets fired multiple times</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91494#M1295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;Validated event should be called twice: once when the sheet is opened, and once when the selection is made (provided you really only make one selection and not several in step 7). If the calculation behind the object is slow and the steps happen quickly (like programatically) the initial getLayout might get aborted and there will be only one Validated event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to avoid this you should make selections first and show the object after that. This is a common (and recomended) technique in mashups, where you want to have an initial selection when you display an object, used for example in single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;P&gt;&lt;A href="https://extendingqlik.upper88.com/" title="https://extendingqlik.upper88.com/"&gt;https://extendingqlik.upper88.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 06:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91494#M1295</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-10-12T06:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: AngularJS-based visualization extensions, validated events gets fired multiple times</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91495#M1296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Erik,&lt;/P&gt;&lt;P&gt;ok this makes sense that the validated event is fired when the sheet is opened and a selection is done. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/check.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What confuses me is when I switch for example 3 times between sheet 1 &amp;lt;-&amp;gt; sheet2 (step 5 and 6) and then go back to sheet 1 and make ONE selection the validated event gets fired 3 times ( in general the number of switching between the sheets + 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understand should the validated event be fired only 2 times (sheet opened + data ready).&lt;/P&gt;&lt;P&gt;This is realy bad for large computations inside &lt;SPAN style="color: #fd971f; font-style: italic;"&gt;$scope&lt;/SPAN&gt;.component.model.Validated.&lt;SPAN style="color: #a6e22e;"&gt;bind. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is there a method to prevent this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217214_Unbenannt3.PNG" style="height: 72px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91495#M1296</guid>
      <dc:creator>fduchmann</dc:creator>
      <dc:date>2018-10-31T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: AngularJS-based visualization extensions, validated events gets fired multiple times</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91496#M1297</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 really use this pattern, but it might be that your callback gets bound multiple times, once every time you go to the sheet. You probably need to unbind when the extension is destroyed. Or you could use paint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg &lt;/P&gt;&lt;P&gt;&lt;A href="http://extendingqlik.upper88.com/" title="http://extendingqlik.upper88.com/"&gt;Extending Qlik – Use Qlik in your own apps and sites&lt;/A&gt;&lt;/P&gt;&lt;P&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 16:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/AngularJS-based-visualization-extensions-validated-events-gets/m-p/91496#M1297</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-10-31T16:47:31Z</dc:date>
    </item>
  </channel>
</rss>

