2 Replies Latest reply: Dec 9, 2015 9:35 AM by Sangram Reddy RSS

    QS Mashup - global filter

    Achal Anjaria

      In a QS Mashup, I am bringing in charts from two apps but I do want a common filter (global) that drills into both apps charts. Is that possible?

        • Re: QS Mashup - global filter
          Stefan Walther

          Hi aanjaria,

           

          unfortunately this is not possible out of the box, you would have to create your own "listbox" or filterbox and then apply the selections to both apps programmatically.

           

          Regards

          Stefan

          • Re: QS Mashup - global filter
            Sangram Reddy

            Hi Achal,

             

            As Stefan has suggest you can do it by setting filter explicitly for the underlying apps on selection.

             

            Use this code below to achieve it:

             

            var app1 = qlik.openApp('<Name of the app>', config);

            var app2 = qlik.openApp('<Name of the app>', config);

             

            //On Selection

             

            $("#id, .Class").click(function() {

                        app1.field("[Field]").selectMatch($(this).text(), false);   

                        app2.field("[Field]").selectMatch($(this).text(), false);    

                    });