<?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: Common Filters Across Multiple Apps in Qlik Sense Mashup!! in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Common-Filters-Across-Multiple-Apps-in-Qlik-Sense-Mashup/m-p/2547226#M22845</link>
    <description>&lt;LI-CODE lang="markup"&gt;$(document).ready(function () {
  const uniqueAppId = ["app id 1", "app id 2", "app id 3"]; //add all the app ids
  console.log("uniqueAppId", uniqueAppId);
  const apps = {};

  uniqueAppId.forEach((appId) =&amp;gt; {
    apps[appId] = qlik.openApp(appId, config);
  });

  // add the app id and filter object id from your primary app
  var masterApp = qlik.openApp("primary app id ", config);
  masterApp.getObject("filter1", "filter object id");
  masterApp.getObject("filter2", "filter object id");
  masterApp.getObject("filter3", "filter object id");
  masterApp.getObject("filter4", "filter object id");

  masterApp.selectionState().OnData.bind(function () {
    const selections = masterApp.selectionState().selections;

    const filterFields = ["date","department"]; // add all the field name same but in lowercase

    uniqueAppId.forEach((appId) =&amp;gt; {
      const app = apps[appId];
      selections.forEach((selection) =&amp;gt; {
        const fieldName = selection.fieldName.toLowerCase();

        if (filterFields.includes(fieldName)) {
          const selectedValues = selection.selectedValues.map(
            (value) =&amp;gt; value.qName
          );
          app
            .field(selection.fieldName)
            .selectValues(selectedValues, false, true);
        }
      });
    });
    // add button in html file with id clearAllButton (which will remove all the selection)
    $("#clearAllButton").click(function () {
      uniqueAppId.forEach((appId) =&amp;gt; {
        apps[appId].clearAll();
      });
      masterApp.clearAll();
    });
  });
});

// don't make any changes on the code apart from the app id, object id and field values
&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 18 Apr 2026 15:49:03 GMT</pubDate>
    <dc:creator>mk09123</dc:creator>
    <dc:date>2026-04-18T15:49:03Z</dc:date>
    <item>
      <title>Common Filters Across Multiple Apps in Qlik Sense Mashup!!</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Common-Filters-Across-Multiple-Apps-in-Qlik-Sense-Mashup/m-p/2546714#M22832</link>
      <description>&lt;P&gt;I am working on a Qlik Sense mashup that contains charts from &lt;STRONG&gt;multiple Qlik Sense applications&lt;/STRONG&gt;. These applications share common fields such as &lt;STRONG&gt;Date&lt;/STRONG&gt; and &lt;STRONG&gt;Department&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I noticed that when I apply a filter to one chart, &lt;STRONG&gt;other charts from the same application respond correctly&lt;/STRONG&gt;, which is expected. However, &lt;STRONG&gt;charts coming from different applications do not respond to the same filter&lt;/STRONG&gt;, even though the field names and values are the same.&lt;/P&gt;&lt;P&gt;What is the recommended or best‑practice approach to create &lt;STRONG&gt;common/global filters&lt;/STRONG&gt; in a mashup so that selections are applied consistently across charts coming from &lt;STRONG&gt;different Qlik Sense apps&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Any guidance, examples, or architectural recommendations would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 07:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Common-Filters-Across-Multiple-Apps-in-Qlik-Sense-Mashup/m-p/2546714#M22832</guid>
      <dc:creator>Cascader</dc:creator>
      <dc:date>2026-04-14T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Common Filters Across Multiple Apps in Qlik Sense Mashup!!</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Common-Filters-Across-Multiple-Apps-in-Qlik-Sense-Mashup/m-p/2547226#M22845</link>
      <description>&lt;LI-CODE lang="markup"&gt;$(document).ready(function () {
  const uniqueAppId = ["app id 1", "app id 2", "app id 3"]; //add all the app ids
  console.log("uniqueAppId", uniqueAppId);
  const apps = {};

  uniqueAppId.forEach((appId) =&amp;gt; {
    apps[appId] = qlik.openApp(appId, config);
  });

  // add the app id and filter object id from your primary app
  var masterApp = qlik.openApp("primary app id ", config);
  masterApp.getObject("filter1", "filter object id");
  masterApp.getObject("filter2", "filter object id");
  masterApp.getObject("filter3", "filter object id");
  masterApp.getObject("filter4", "filter object id");

  masterApp.selectionState().OnData.bind(function () {
    const selections = masterApp.selectionState().selections;

    const filterFields = ["date","department"]; // add all the field name same but in lowercase

    uniqueAppId.forEach((appId) =&amp;gt; {
      const app = apps[appId];
      selections.forEach((selection) =&amp;gt; {
        const fieldName = selection.fieldName.toLowerCase();

        if (filterFields.includes(fieldName)) {
          const selectedValues = selection.selectedValues.map(
            (value) =&amp;gt; value.qName
          );
          app
            .field(selection.fieldName)
            .selectValues(selectedValues, false, true);
        }
      });
    });
    // add button in html file with id clearAllButton (which will remove all the selection)
    $("#clearAllButton").click(function () {
      uniqueAppId.forEach((appId) =&amp;gt; {
        apps[appId].clearAll();
      });
      masterApp.clearAll();
    });
  });
});

// don't make any changes on the code apart from the app id, object id and field values
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Apr 2026 15:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Common-Filters-Across-Multiple-Apps-in-Qlik-Sense-Mashup/m-p/2547226#M22845</guid>
      <dc:creator>mk09123</dc:creator>
      <dc:date>2026-04-18T15:49:03Z</dc:date>
    </item>
  </channel>
</rss>

