<?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: Qlik Sense integration/API - Same object (with same object ID) but different values/filters in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754055#M13406</link>
    <description>&lt;P&gt;Try with alternate states. You would need to copy your object and connect the copies to alternate states. You can then make different selections in the different selection states.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2020 11:10:21 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2020-10-20T11:10:21Z</dc:date>
    <item>
      <title>Qlik Sense integration/API - Same object (with same object ID) but different values/filters</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754048#M13405</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to make a webpage based on one single app. On that specific app, I have an object (with object ID "KcGgdmk") that I want to show multiple times but every time with different filters ("Selectionvalues").&lt;/P&gt;
&lt;P&gt;Below, you can find a working code but I used a workaround with 2 different virtual proxies. This is not a best practice way of integrating (I think &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;) one object with different filter values.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Who has experience with this?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;What is the best practice approach in this situation?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;Code results (working with diff. virtual proxies):&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;/*&lt;BR /&gt;* Basic responsive mashup template&lt;BR /&gt;* @owner Enter you name here (xxx)&lt;BR /&gt;*/&lt;BR /&gt;/*&lt;BR /&gt;* Fill in host and port for Qlik engine&lt;BR /&gt;*/&lt;BR /&gt;var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );&lt;BR /&gt;var config2 = {&lt;BR /&gt;host: window.location.hostname,&lt;BR /&gt;prefix: "/gsm/",&lt;BR /&gt;port: window.location.port,&lt;BR /&gt;isSecure: window.location.protocol === "https:"&lt;BR /&gt;};&lt;BR /&gt;require.config( {&lt;BR /&gt;baseUrl: ( config2.isSecure ? "https://" : "http://" ) + config2.host + (config2.port ? ":" + config2.port : "") + config2.prefix + "resources"&lt;BR /&gt;} );&lt;/P&gt;
&lt;P&gt;require( ["js/qlik"], function ( qlik ) {&lt;BR /&gt;qlik.on( "error", function ( error ) {&lt;BR /&gt;$( '#popupText' ).append( error.message + "&amp;lt;br&amp;gt;" );&lt;BR /&gt;$( '#popup' ).fadeIn( 1000 );&lt;BR /&gt;} );&lt;BR /&gt;$( "#closePopup" ).click( function () {&lt;BR /&gt;$( '#popup' ).hide();&lt;BR /&gt;} );&lt;/P&gt;
&lt;P&gt;//callbacks -- inserted here --&lt;BR /&gt;//open apps -- inserted here --&lt;BR /&gt;var app = qlik.openApp('4e901674-7c28-420c-aef8-d7487f0cbf96', config2);&lt;/P&gt;
&lt;P&gt;//get objects -- inserted here --&lt;BR /&gt;app.getObject('QV01','KcGgdmk');&lt;BR /&gt;app.field('ID').clear&lt;BR /&gt;app.field('ID').selectValues(["WO_02"]);&lt;BR /&gt;app.field('Filter').selectValues(["Aalst"]);&lt;BR /&gt;app.field('ID','Benchmark').clear&lt;BR /&gt;app.field('ID','Benchmark').selectValues(["WO_02"]);&lt;BR /&gt;app.field('Filter','Benchmark').selectValues(["Antwerpen"]);&lt;BR /&gt;//create cubes and lists -- inserted here --&lt;/P&gt;
&lt;P&gt;var config1 = {&lt;BR /&gt;host: window.location.hostname,&lt;BR /&gt;prefix: "/gsm2/",&lt;BR /&gt;port: window.location.port,&lt;BR /&gt;isSecure: window.location.protocol === "https:"&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;require.config( {&lt;BR /&gt;baseUrl: ( config1.isSecure ? "https://" : "http://" ) + config1.host + (config1.port ? ":" + config1.port : "") + config1.prefix + "resources"&lt;BR /&gt;} );&lt;/P&gt;
&lt;P&gt;//callbacks -- inserted here --&lt;BR /&gt;//open apps -- inserted here --&lt;BR /&gt;var app2 = qlik.openApp('4e901674-7c28-420c-aef8-d7487f0cbf96', config1);&lt;BR /&gt;//get objects -- inserted here --&lt;BR /&gt;app2.getObject('QV02','KcGgdmk');&lt;BR /&gt;app2.field('ID').clear&lt;BR /&gt;app2.field('Filter').clear&lt;BR /&gt;app2.field('ID').selectValues(["WO_02"]);&lt;BR /&gt;app2.field('Filter').selectValues(["Aalst"]);&lt;BR /&gt;app2.field('ID','Benchmark').clear&lt;BR /&gt;app2.field('Filter','Benchmark').clear&lt;BR /&gt;app2.field('ID','Benchmark').selectValues(["WO_02"]);&lt;BR /&gt;app2.field('Filter','Benchmark').selectValues(["Antwerpen"]);&lt;BR /&gt;//create cubes and lists -- inserted here --&lt;/P&gt;
&lt;P&gt;} );&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense" id="qlikSense"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;, #API, #Embedding, #BestPractice, #NoobAlert&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 18:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754048#M13405</guid>
      <dc:creator>timmy</dc:creator>
      <dc:date>2021-08-13T18:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense integration/API - Same object (with same object ID) but different values/filters</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754055#M13406</link>
      <description>&lt;P&gt;Try with alternate states. You would need to copy your object and connect the copies to alternate states. You can then make different selections in the different selection states.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 11:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754055#M13406</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2020-10-20T11:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense integration/API - Same object (with same object ID) but different values/filters</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754086#M13408</link>
      <description>&lt;P&gt;Hi Erik,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;What technique would you recommend to copy the object (via api)?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754086#M13408</guid>
      <dc:creator>timmy</dc:creator>
      <dc:date>2020-10-20T12:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense integration/API - Same object (with same object ID) but different values/filters</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754197#M13412</link>
      <description>&lt;P&gt;Try with the visualization API:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/VisualizationAPI.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/September2020/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/VisualizationAPI.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 15:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-integration-API-Same-object-with-same-object-ID-but/m-p/1754197#M13412</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2020-10-20T15:51:50Z</dc:date>
    </item>
  </channel>
</rss>

