0 Replies Latest reply: Aug 2, 2017 5:34 PM by Rebekah Beets RSS

    qlik not going into require functions to initialize qlik

    Rebekah Beets

      When i load this code, it does not step into the require.config function or the following qlik function. it skips over them.

       

      I have the requirejs file loaded.

       

      Errors: Uncaught reference error: qlik is not defined.

       

      var config = {

                      host: window.location.hostname, //'integration.qlik.com',

                      isSecure: false,

                      prefix: '/',

                      port: 4848 //443

                  };

       

      doesn't step into this:

                  require.config({

                      baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port: "") + config.prefix + 'resources'

                  });

       

      //doesn't step into this:

                  var app;

                  require(['js/qlik'], function (qlik) {

                      qlik.setOnError(function (error) {

                          alert(error.message);

                      });

       

      //qlik is not defined:

                      app = qlik.openApp('%5C%5Capfs01%5Cusers%5Crbeets%5CDocuments%5CQlik%5CSense%5CApps%5Capp1.qvf', config);

                  });