Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlik sense extension in mashup on external server

Hi,

I am having trouble in visualizing extension object in mash up API. We have created few extensions objects and dropped them on a sheet. When I use mash up using workbench everything works fine but when I use same mash up on different server it says invalid visualization.

My qlik server is running on Server A and my web application is running on server B. I am trying to embed extension object form qlik into my web application using mash up.


Any one faced similar issue ?

23 Replies
Anonymous
Not applicable
Author

I faced the exactly same problem. Initially I solved this by specifying fully qualified path of CSS file in extension js.

Another solution is to tell require js to use xhr call and this won't append js to it.

requirejs.config(

{ config:{

text:{ useXhr:function(url, protocol, hostname, port){return true;}}

}

});

ErikWetterberg

Yes, you can configure requirejs (or rather the text plugin) to not add '.js' when making requests to another server. When I tried this some time ago it didn't solve the problem, because you got CORS errors instead. Have you got it working? Could you share information about how? Perhaps in a new thread, this one is getting quite long...

Erik

joaogoncalves
Partner - Contributor III
Partner - Contributor III

Hi Vishal,

You have solved this? Can you share your .js file? I'm having the same exact issue. Everything is working fine, except the extension. But i've tried to change the baseconfig without any change in the behavior.

Kind Regards,

eduardo_palacios
Partner - Contributor III
Partner - Contributor III

Hi,

What about calling de Qlik API from JS from another plataform in the same server?

For example, I have QS Enterprise but I'm developing a project in Brackets (don't want to do it in Dev-Hub).

But I am having trouble referencing require.js, etc. 

 

When I call "require( ["js/qlik"], function ( qlik  )..."  it doesn't reconise the following commands:

 

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="../../resources/autogenerated/qlik-styles.css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

 

But in Dev-Hub workings fine.

Again, Brackets and QS Enterprise are both in the same server.

 

Thanks in advance.