Create a gist now

Instantly share code, notes, and snippets.

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