Skip to content

Instantly share code, notes, and snippets.

@erikwett
Created October 22, 2016 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikwett/53280c8023aaebab679a6fd0a7451e75 to your computer and use it in GitHub Desktop.
Save erikwett/53280c8023aaebab679a6fd0a7451e75 to your computer and use it in GitHub Desktop.
//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