Skip to content

Instantly share code, notes, and snippets.

@erikwett
Created October 22, 2016 15:59
Embed
What would you like to do?
//check if we are in personal mode(desktop) or not
var global = qlik.getGlobal( config ), isPersonalMode;
global.isPersonalMode( function ( reply ) {
isPersonalMode = reply.qReturn;
} );
/*..*/
if ( isPersonalMode ) {
app.doReload().then( function () {
app.doSave();
} );
} else {
qlik.callRepository( '/qrs/app/' + appid + '/reload', 'POST' ).success( function ( reply ) {
alert( "App reloaded" );
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment