Small js file that will show arrow icon in top left corner of the extension div if new versioin is available
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Screenshots
.gitattributes
.gitignore
LICENSE.md
README.md
checkforupdate.js

README.md

Check for new versions of qlikview extensions

Join the chat at https://gitter.im/countnazgul/Qlikview-Check-for-Extension-Updates

There is no functionality in QV that will inform your users if new version of your QV extension is available. This script will help you do this.

Pre-requirements

  • the extension code is hosted in Github
  • need to create "Releases" for each new version

Setup releases in Github

Please check the Github documentation how to create releases (https://help.github.com/articles/creating-releases/)

Using the script

Edit the "version" and "repoReleaseUrl" in the "checkforupdate.js"

		var version = 'x.xx';
		var repoReleaseUrl = "https://api.github.com/repos/USERNAME/REPONAME/releases";

After this there are two changes that are needed to be made in the script of the actual extension:

  • include the "checkforupdate.js"
  • call the "checkForUpdates" function

Include "checkforupdate.js"

var extension_path = Qva.Remote + "?public=only&name=Extensions/MyExtension/";
Qva.LoadScript(extension_path + "checkforupdate.js", function() { ...

Call "checkForUpdates" function

Call the function after the creation of the main extension div while passing the newly created div id:

Qva.AddExtension('MyExtension', function(){
  var _this = this;
  var divName = _this.Layout.ObjectId.replace("\\", "_");
  var ui = document.createElement("div");
  ui.setAttribute("id", divName);
  checkForUpdates(divName);
  // ... your extension code as usual
})

The script will check for new versions on every new session (not every time when selection is made) but the indicator will stay (if new version is available).

The script is not dependant from any other scripts or libraries.

Screenshots

Icon

IconWithHoverText