Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.
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)
});
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.
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.