2 Replies Latest reply: Jan 16, 2018 3:44 AM by David Tomlins RSS

    Mashup - qlik.resize() not working

    David Tomlins

      Hi Everyone,

       

      I am fairly new to this, so apologies if I am way off the mark..

       

      I am using Show() and Hide() to dynamically change the content of my mashup, and two graphs start off hidden and then need to be shown when further detail is required.

       

      However these graphs are not showing, and i understand from looking around that a qlik.resize() function needs to be called in the call back of the show.

       

      I have scripted the following:

       

       

      $(document).ready(function(){

           $("#Detail").hide();                                         //hide detail

           $("#DetailButton").hide();

           $("#SummaryButton").click(function(){           //on clicking next button hide Summary info and show detail info

                     $("#Summary").hide(1000);

                     $("#SummaryButton").hide(1000);

                     $("#Detail").show(1000, function() {

                          qlik.resize();

                         });

                     $("#DetailButton").show(1000);

                });

       

          $("#DetailButton").click(function(){                      //on clicking back button hide detail info and return to summary info

                $("#Detail").hide(1000);

                $("#DetailButton").hide(1000);

                $("#Summary").show(1000);

                $("#SummaryButton").show(1000);

          });

      });

       

      And when I click the detail button: I get the following error:

       

      issue.PNG

       

       

      Could someone point me in the right direction please?

       

      Thanks in advance David