<?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: Connecting App Integration API with Capabilities API in same session in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40521#M623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aiham, worked like a charm.&amp;nbsp; I ended up using the first suggestion so I don't have to deal with the URL encoding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2018 17:28:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-05T17:28:01Z</dc:date>
    <item>
      <title>Connecting App Integration API with Capabilities API in same session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40519#M621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a mashup where I am trying to integrate an entire sheet from an app (MyApp.qvf) through the App API using an iframe as well as pull in other objects from another sheet in the same app (MyApp.qvf) through the Capabilities API.&amp;nbsp; I was able to do all of this successfully, however the sheet and the integrated objects don't seem to be sharing the same session. In short, filtering on the sheet doesn't effect the objects and visa versa.&amp;nbsp; My question is -- Is there a way to connect these to use the same session, or is there some other way to integrate an entire sheet using the Capabilities API.&amp;nbsp; I would prefer to not have to re-create the layout of the sheet in my mashup and pull in every object separately using the Capabilities API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to IP restrictions I have to be rather vague on the design of the mashup, but I've include a crude diagram of the site and what I am trying to do.&amp;nbsp; I've also included the code I am using to pull in the sheet through the iframe and the code I am using to pull in the separate objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Mashup.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204068_Mashup.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;iframe code (in my mashups main html file):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN&gt;&amp;lt;iframe id="dashboard-iframe" class="dashboard-frame" src='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/sense/app/C%3A%5CUsers%5Cjharfmann%5CDocuments%5CQlik%5CSense%5CApps%5CMyApp.qvf/sheet/0c80e840-a78c-4a8f-844f-e023b925b51e/state/analysis" rel="nofollow" target="_blank"&gt;http://localhost:4848/sense/app/C%3A%5CUsers%5Cjharfmann%5CDocuments%5CQlik%5CSense%5CApps%5CMyApp.qvf/sheet/0c80e840-a78c-4a8f-844f-e023b925b51e/state/analysis&lt;/A&gt;&lt;SPAN&gt;' style='border:none;'&amp;gt;&amp;lt;/iframe&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;capabilities api code (in my mashups main script file):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );&lt;/P&gt;&lt;P&gt;var config = {&lt;/P&gt;&lt;P&gt;host: window.location.hostname,&lt;/P&gt;&lt;P&gt;prefix: prefix,&lt;/P&gt;&lt;P&gt;port: window.location.port,&lt;/P&gt;&lt;P&gt;isSecure: window.location.protocol === "https:"&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require.config({&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;baseUrl: ( config.isSecure ? "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;" : "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Use the QS Capability API to pull in the filters on the left side&lt;/P&gt;&lt;P&gt;require( ["js/qlik"], function ( qlik ) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Connect to the Qlik Sense App&lt;/P&gt;&lt;P&gt;var app = qlik.openApp('MyApp.qvf', config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//load the filters to the left side filter panel&lt;/P&gt;&lt;P&gt;app.getObject('filter1','855fa92a-3a0d-4c61-bcd2-945e7613b607');&lt;/P&gt;&lt;P&gt;app.getObject('filter2','78650959-0d56-4a35-8243-d2fff8138e1e');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 20:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40519#M621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T20:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting App Integration API with Capabilities API in same session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40520#M622</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/241165"&gt;jharfmann&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the same web socket URL for sharing sessions.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;qlik.openApp('MyApp.qvf', config); will create : ws://localhost:4848/app/MyApp.qvf while the App Integration url : ws://localhost:4848/app/&lt;SPAN style="color: #000000;"&gt;C%3A%5CUsers%5Cjharfmann%5CDocuments%5CQlik%5CSense%5CApps%5CMyApp.qvf/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you can fix it by either change the App Integration url to be : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;iframe id="dashboard-iframe" class="dashboard-frame" src='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/sense/app/C%3A%5CUsers%5Cjharfmann%5CDocuments%5CQlik%5CSense%5CApps%5CMyApp.qvf/sheet/0c80e840-a78c-4a8f-844f-e023b925b51e/state/analysis" rel="nofollow" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;" target="_blank"&gt;http://localhost:4848/sense/app/MyApp.qvf/sheet/0c80e840-a78c-4a8f-844f-e023b925b51e/state/analysis&lt;/A&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;' style='border:none;'&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;qlik.openApp =&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;qlik.openApp('&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;C%3A%5CUsers%5Cjharfmann%5CDocuments%5CQlik%5CSense%5CApps%5C&lt;/SPAN&gt;MyApp.qvf', config);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 06:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40520#M622</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2018-06-04T06:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting App Integration API with Capabilities API in same session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40521#M623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aiham, worked like a charm.&amp;nbsp; I ended up using the first suggestion so I don't have to deal with the URL encoding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 17:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-App-Integration-API-with-Capabilities-API-in-same/m-p/40521#M623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T17:28:01Z</dc:date>
    </item>
  </channel>
</rss>

