Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

brijeshma
Contributor

simple mashup is not working on External Apache Server

Hi All ,

i have a one basic mashup to just check whether mashup is showing on apache server on domain.

Same Mashup is Working on QAP Server . kindly check and tell me what i need to do .

Here is my Basic Code

<!doctype html>

<html lang="en">

<head>

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title>Brijesh Mashup</title>

    <meta charset="utf-8">

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <meta name="HandheldFriendly" content="True">

    <meta name="MobileOptimized" content="320">

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

    <meta name="apple-mobile-web-app-capable" content="yes">

    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <meta http-equiv="cleartype" content="on">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

    <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>

 

  <link rel="stylesheet" href="https://qapdemoserver.in/resources/autogenerated/qlik-styles.css">

    <script src="https://qapdemoserver.in/resources/assets/external/requirejs/require.js"></script>

    <script src="Test.js"></script>

         <style>

        article.qvobject

        {

            position:absolute;

            overflow: hidden;

            padding: 10px;

        }

    </style>

</head>

<body style="overflow:auto">

<button id="cmdExport" style="display:block;"> 

   Export data 

</button> 

<div id="QV01" style="position: absolute; top: 50px; left: 20px; width: 200px; height: 200px;" class="qvplaceholder"></div>

<div id="QV02" style="position: absolute; top: 50px; left: 320px; width: 400px; height: 200px;" class="qvplaceholder"></div>

<div id="QV03" style="position: absolute; top: 300px; left: 20px; width: 200px; height: 200px;" class="qvplaceholder"></div>

<div id="QV04" style="position: absolute; top: 300px; left: 320px; width: 400px; height: 200px;" class="qvplaceholder"></div>

</body>

</html>

and My Test.js Script

var config = {

  isSecure: true,

  host: "qapdemoserver.in"

  port: 443,

  prefix: "/"

};

require.config( {

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

} );

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

  qlik.setOnError( function ( error ) {

  alert( error.message );

  } );

  var app = qlik.openApp('cd2908ab-e2ab-4742-ac45-45753bcaf468', config);

  //app.getObject('QV03','currsel')

  //get objects -- inserted here --

  app.getObject('QV01','WJRW');

  app.getObject('QV02','WJRW');

  app.getObject('QV04','CurrentSelections');

} );

I have Not Created Any Virtual Proxy Yet. If its required .. What i need to setup in Virtual Proxy

and Error i am Getting

4 Replies
Employee
Employee

Re: simple mashup is not working on External Apache Server

Are you running 3.0?

There is currently a bug where external sites has to be hosted on the same protocol as the Qlik Sense server, so if your sense server is hosted over https then your external site also has to be.

The bug is scheduled to be fixed in the first service release of 3.0 which is due shortly.

brijeshma
Contributor

Re: simple mashup is not working on External Apache Server

Yes Alexander ,

We are Using QAP Server 3.0 . to get facility of alternative measure option on mashup .

We have Create multipage mashup using Single Configurator ( IFRME) . we are able to host on web server and able to view as well. But i want to do with by object wise using app.getobject . But its not happening. As well with Multipage mashup its not holding the selection. Can u Suggest me when all this will be fix it out.

Employee
Employee

Re: simple mashup is not working on External Apache Server

Iframing is different as you are then running in the context of the parent page.
Afaik 3.0.1 should be out sometime in July but I don't have a definitive time frame. For the time being you could host your mashup page over https (recommended) or turn on http for your qlik sense server (not recommended)

brijeshma
Contributor

Re: simple mashup is not working on External Apache Server

Hi Alexander,

So you mean to say i QAP Server i should Allow HTTP and in script should i do like this

var config = {

  isSecure: true,

  host: "qapdemoserver.in"

  port: 80,

  prefix: "/"

};

Community Browser