Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
danelooman
Creator
Creator

Can't open an app without Data in a Mashup.

Below is my code. Seems pretty straight forward from the docs but I can't seem to open an app (I own it and its unplublished) without data. 

 

 

var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );
var config = {
	openWithoutData: true,
	host: window.location.hostname,
	prefix: prefix,
	port: window.location.port,
	isSecure: window.location.protocol === "https:",
	
};
console.log(config)
require.config( {
	baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
} );

require( ["js/qlik"], function ( qlik ) {
		var app = qlik.openApp('02e29c03-03ed-4a14-824f-5095efd5c1a5', {openWithoutData:true});
		console.log(app)
});

 

 

 

Labels (1)
  • API

1 Solution

Accepted Solutions
alex_colombo
Employee
Employee

Hi @danelooman, I tested your code in both Feb 2022 and Nov 2022 (latest realease) and it should open an app without data. Looking at websocket messages the 5th parameter of OpenDoc method is always with false, so it will always open app with data, even if you set it correctly in configuration object through Capability APIs.

I could say that for me could be a bug. I suggest to raise a support ticket in order to have a fix from our R&D. Meanwhile, I'll raise it internally.

View solution in original post

2 Replies
alex_colombo
Employee
Employee

Hi @danelooman, I tested your code in both Feb 2022 and Nov 2022 (latest realease) and it should open an app without data. Looking at websocket messages the 5th parameter of OpenDoc method is always with false, so it will always open app with data, even if you set it correctly in configuration object through Capability APIs.

I could say that for me could be a bug. I suggest to raise a support ticket in order to have a fix from our R&D. Meanwhile, I'll raise it internally.

alex_colombo
Employee
Employee

Just an heads up on this thread, I received confirmation from our R&D team that this issue has been resolved an a fix will be included in Qlik Sense version May 2023 under reference QB-17705