Skip to content

Instantly share code, notes, and snippets.

@theredpea
Last active February 6, 2018 21:15
Show Gist options
  • Select an option

  • Save theredpea/95d8904f8eef98a89c2d164d81dfb9b5 to your computer and use it in GitHub Desktop.

Select an option

Save theredpea/95d8904f8eef98a89c2d164d81dfb9b5 to your computer and use it in GitHub Desktop.
//Related to the is_personal_mode / desktop mode question:
//https://gist.github.com/theredpea/f0a927242332d4d9d1c9aaaa5aa700aa/edit
//But regarding the *version*, see "About Service API"
//https://help.qlik.com/en-US/sense-developer/November2017/Subsystems/AboutServiceAPI/Content/AboutServiceAPI/AboutServiceAPI-Get-SystemInfo.htm
//https://hostname/api/about/v1/systeminfo
//Example URL:
//https://usrem-nnd.qliktech.com/api/about/v1/systeminfo
//Example results:
{
"contentHash": "c2a34eda6f0cdb202eb2fc7a19d6a23f",
"senseId": "qliksenseserver:11.24.1",
"originalClassName": "Composition",
"version": "11.24.1",
"deploymentType": "QlikSenseServer",
"releaseLabel": "November 2017",
"deprecatedProductVersion": "4.0.X",
"productName": "Qlik Sense",
"copyrightYearRange": "1993-2017"
}
//There is also the getVersion method on app.model
//https://gist.github.com/theredpea/14b8649301b24e9c74773ab00af091bb
//which is an actual engine call apparently: QvVersion
//
getVersion: function() {
return this.session.rpc({
method: "QvVersion",
handle: -1,
params: []
}).then(function(e) {
return e.result.qReturn
})
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment