<?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 Catching Mashup Events in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772894#M2487</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 created a QlikSense mashup using API &amp;amp; JS. WHat I want is to catch an event when user selects something or clears selections and then store active selections in session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody point me to right direction how to catch that event. I suppose it is some JS code. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2015 11:38:25 GMT</pubDate>
    <dc:creator>d_pranskus</dc:creator>
    <dc:date>2015-03-10T11:38:25Z</dc:date>
    <item>
      <title>Catching Mashup Events</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772894#M2487</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 created a QlikSense mashup using API &amp;amp; JS. WHat I want is to catch an event when user selects something or clears selections and then store active selections in session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody point me to right direction how to catch that event. I suppose it is some JS code. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 11:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772894#M2487</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2015-03-10T11:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Catching Mashup Events</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772895#M2488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/4826"&gt;d.pranskus&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for asking. Unfortunately we haven't exposed events in general publicly nor documented it. But I definitely acknowledge, that this is something we should look into ...&lt;/P&gt;&lt;P&gt;So cannot promise anything, but ... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 18:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772895#M2488</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2015-03-12T18:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Catching Mashup Events</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772896#M2489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darius,&lt;/P&gt;&lt;P&gt;You can use app.getList(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'SelectionObject', callback).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Documentation is here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/MashupAPI/Methods/getList-method.htm" title="https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/MashupAPI/Methods/getList-method.htm"&gt;https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/MashupAPI/Methods/getList-method.htm&amp;nbsp; &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your callback function will be called whenever selections change. A small example:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14264993583332305" jivemacro_uid="_14264993583332305"&gt;
&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;FieldList&lt;/SPAN&gt;(app) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;me &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.&lt;SPAN style="color: #7a7a43;"&gt;getList&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"FieldList"&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(reply) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;me&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;fields &lt;/SPAN&gt;= reply.qFieldList.qItems;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;me&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;render&lt;/SPAN&gt;();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.&lt;SPAN style="color: #7a7a43;"&gt;getList&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'SelectionObject'&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(reply) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"[data-qcmd='back']"&lt;/SPAN&gt;).&lt;SPAN style="color: #7a7a43;"&gt;parent&lt;/SPAN&gt;().&lt;SPAN style="color: #7a7a43;"&gt;toggleClass&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'disabled'&lt;/SPAN&gt;, reply.qSelectionObject.qBackCount &amp;lt; &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"[data-qcmd='forward']"&lt;/SPAN&gt;).&lt;SPAN style="color: #7a7a43;"&gt;parent&lt;/SPAN&gt;().&lt;SPAN style="color: #7a7a43;"&gt;toggleClass&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'disabled'&lt;/SPAN&gt;, reply.qSelectionObject.qForwardCount &amp;lt; &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;me&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;selections &lt;/SPAN&gt;= reply.qSelectionObject.qSelections;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;me&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;render&lt;/SPAN&gt;();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;FieldList&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;prototype&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;render &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;$fields &lt;/SPAN&gt;= $(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"#fields"&lt;/SPAN&gt;), &lt;SPAN style="color: #458383;"&gt;str &lt;/SPAN&gt;= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"&amp;lt;ul class='list-group'&amp;gt;"&lt;/SPAN&gt;, &lt;SPAN style="color: #458383;"&gt;added &lt;/SPAN&gt;= {}, &lt;SPAN style="color: #458383;"&gt;me &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;selections&lt;/SPAN&gt;) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;selections&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;forEach&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(fld) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;str &lt;/SPAN&gt;+= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'&amp;lt;li class="list-group-item" data-value="' &lt;/SPAN&gt;+ fld.qField + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'"&amp;gt;' &lt;/SPAN&gt;+ fld.qField + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'&amp;lt;span class="badge"&amp;gt;' &lt;/SPAN&gt;+ fld.qSelectedCount + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'/' &lt;/SPAN&gt;+ fld.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;qTotal &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;'&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;added&lt;/SPAN&gt;[fld.qField] = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;fields&lt;/SPAN&gt;) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;fields&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;forEach&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(fld) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(!&lt;SPAN style="color: #458383;"&gt;added&lt;/SPAN&gt;[fld.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;qName&lt;/SPAN&gt;]) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;str &lt;/SPAN&gt;+= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'&amp;lt;li class="list-group-item" data-value="' &lt;/SPAN&gt;+ fld.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;qName &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'"&amp;gt;' &lt;/SPAN&gt;+ fld.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;qName &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'&amp;lt;/li&amp;gt;'&lt;/SPAN&gt;;&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;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;str &lt;/SPAN&gt;+= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"&amp;lt;/ul&amp;gt;"&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;$fields&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;html&lt;/SPAN&gt;(&lt;SPAN style="color: #458383;"&gt;str&lt;/SPAN&gt;)&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 09:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772896#M2489</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2015-03-16T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Catching Mashup Events</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772897#M2490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;I'm trying here something similar in a mashup. When I try your code and make some selection I get an error from engine that says: "15: Operation aborted".&lt;/P&gt;&lt;P&gt;Documentation is no longer on the link you provided. Any idea what could be going on?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 08:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772897#M2490</guid>
      <dc:creator />
      <dc:date>2016-04-29T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Catching Mashup Events</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772898#M2491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sergio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error code 15 is associated with an operation being aborted, and, in my experience, is usually associated with either making or clearing selections while the engine is still performing another task which the engine has to run again when selections change. It has never actually negatively effected my app, and as long as you are not experiencing any unexpected behavior from it, which I'm assuming you're not, it's probably safe to ignore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 17:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772898#M2491</guid>
      <dc:creator>Francis_Kabinoff</dc:creator>
      <dc:date>2016-04-29T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Catching Mashup Events</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772899#M2492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergio,&lt;/P&gt;&lt;P&gt;The 'Operation aborted' happens when the user makes (or clears) a selection at the same time we are trying to fetch data. The client code should try again and get new data that reflects the new selection state. So this error is normal, I don't really know why we print it in the console, we probably shouldn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have updated the link, it should work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Catching-Mashup-Events/m-p/772899#M2492</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2016-05-02T07:17:18Z</dc:date>
    </item>
  </channel>
</rss>

