Created
October 22, 2016 15:59
-
-
Save erikwett/53280c8023aaebab679a6fd0a7451e75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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