<?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: Mashup filter pane not reloading in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75898#M1073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't remember if I had this exact error but Interacting with the App and qlik engine and having it load consistently was a problem for me until I tied it all to the window in Angular. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the component where the mashup lives we have the constructor calling....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15227804928165404" jivemacro_uid="_15227804928165404" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; constructor(private domSanitizer : DomSanitizer, private winRef: WindowRef) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.window = winRef.nativeWindow;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.qlikApp = winRef.nativeWindow.app;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(winRef.nativeWindow.app);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; winRef.nativeWindow.loadQlik(this.qlikObjects);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where loadQlik is a seperate function in a js file under assets that has all the mashup code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15227805831114342" jivemacro_uid="_15227805831114342"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;window.loadQlik = function(objects) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; var prefix = '/';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; var config = {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; host: 'qlik.mashey.com',&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; prefix: prefix,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; port: 443,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; isSecure: true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; //to avoid errors in workbench: you can remove this when you have added an app&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the apenApp , and getObject calls now nested in that function looks like... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1522780690730963" jivemacro_uid="_1522780690730963" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; //open apps -- inserted here --&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; window.app = qlik.openApp('e2382997-ff7d-42be-892b-a73bd07f8687', config);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; //get objects -- inserted here --&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i = 0; i&amp;lt; objects.length;i++){&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject(objects&lt;I&gt;.id,objects&lt;I&gt;.qlik_id);&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And I'm just using an array to store the object IDs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can resolve your issues as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2018 18:41:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-03T18:41:41Z</dc:date>
    <item>
      <title>Mashup filter pane not reloading</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75897#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a mashup, in which I am loading the filter pane object directly from the underlying Sense app. (As an aside, is this the best way to use filter panes in an app or is it better to create a custom html object?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The filter pane works on initial load. See:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197227_Capture.PNG" style="height: 52px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;However, when I navigate away from the page and come back the Qlik object doesn't get loaded into html. Instead I get the default text ("Loading...').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using AngularJS. Here is the template, in which the qlik object is supposed to load:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15217501244841897" jivemacro_uid="_15217501244841897"&gt;
&lt;P&gt;&amp;lt;div id="{{$ctrl.objId}}" class="qvobject qv-filterpane" ng-style="{ 'height': '5rem', 'width': '100%' }"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Loading...&lt;/P&gt;
&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the actual loading within the $onInit hook. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15217501350422650" jivemacro_uid="_15217501350422650"&gt;
&lt;P&gt;$onInit(){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;this.$openApp.getObject(this.objId,this.objId, this.objOptions || null)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why it won't reload? I put a console.log in the $onInit function and it gets called every time I navigate to the page, so it's not that getObject isn't being called. Also, everything else on the page gets reloaded, only the filter pane does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 20:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75897#M1072</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2018-03-22T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup filter pane not reloading</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75898#M1073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't remember if I had this exact error but Interacting with the App and qlik engine and having it load consistently was a problem for me until I tied it all to the window in Angular. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the component where the mashup lives we have the constructor calling....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15227804928165404" jivemacro_uid="_15227804928165404" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; constructor(private domSanitizer : DomSanitizer, private winRef: WindowRef) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.window = winRef.nativeWindow;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.qlikApp = winRef.nativeWindow.app;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(winRef.nativeWindow.app);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; winRef.nativeWindow.loadQlik(this.qlikObjects);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where loadQlik is a seperate function in a js file under assets that has all the mashup code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15227805831114342" jivemacro_uid="_15227805831114342"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;window.loadQlik = function(objects) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; var prefix = '/';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; var config = {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; host: 'qlik.mashey.com',&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; prefix: prefix,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; port: 443,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; isSecure: true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; //to avoid errors in workbench: you can remove this when you have added an app&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the apenApp , and getObject calls now nested in that function looks like... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1522780690730963" jivemacro_uid="_1522780690730963" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; //open apps -- inserted here --&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; window.app = qlik.openApp('e2382997-ff7d-42be-892b-a73bd07f8687', config);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; //get objects -- inserted here --&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i = 0; i&amp;lt; objects.length;i++){&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject(objects&lt;I&gt;.id,objects&lt;I&gt;.qlik_id);&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And I'm just using an array to store the object IDs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can resolve your issues as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 18:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75898#M1073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-03T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup filter pane not reloading</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75899#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrew. I'll check it out. I've temporarily moved on to a new project so I can't be sure for right now, but as soon as I get back I'll try your approach and see if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 20:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75899#M1074</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2018-04-03T20:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup filter pane not reloading</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75900#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't comment on why the filter is not loading as I'm not using Angular.&amp;nbsp; However, with regard to whether to simply take the filter pane from the underlying Qlik Sense app or create an HTML version, it really depends on whether the filter pane meets your requirements.&amp;nbsp; If so, it certainly involves less coding to just use getObject.&amp;nbsp; However, I have come across a number of scenarios which have led me to create my own HTML lists, including single-selection lists.&amp;nbsp; Of course, you also have more flexibility in styling when creating your own HTML lists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75900#M1075</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-04-04T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup filter pane not reloading</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75901#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johnathan,&lt;/P&gt;&lt;P&gt;I don't really know why the filterpane does not work, but it is different from other visualizations in that it's a container holding a set of listboxes, which are really visualizations themselves. An alternative might be to create the listboxes with the visualization API instead (I think there is some example on that in the community).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing you could try is to remove the qv-filterpane css class from your code. Qlik Sense uses that css class internally in the filterpane, so using it in your template might cause problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75901#M1076</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-04T12:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup filter pane not reloading</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75902#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the qv-filterpane css class didn't seem to have any effect, but thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will probably try to build my own filters, perhaps using the visualization API to create listboxes. Re-using my filter-pane from the app would have made life easier, but I suppose that having my own version, which I can style as I wish, won't be too bad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-filter-pane-not-reloading/m-p/75902#M1077</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2018-04-04T13:09:28Z</dc:date>
    </item>
  </channel>
</rss>

