Bookmark API

Note: STABLE.
This API is reliable and breaking changes are unlikely.

qlik.app.bookmark

The Bookmark API contains methods to work with bookmarks on the Qlik Sense app you are connected to.

Version history

Introduced 1.0

Getting started

You must connect to the Qlik Sense app before applying existing, or creating new, bookmarks. You do this with the qlik.openApp method.

var config = {
	host: "myhost.com",
	prefix: "/",
	port: window.location.port,
	isSecure: true
};
require(["js/qlik"], function(qlik) {
  //open apps -- inserted here --
  var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
  //apply a bookmark
  app.bookmark.apply('pPvpTN');
}

Version history

Each method and property contain information around when it was introduced, updated, deprecated or removed. A list of all relevant API changes per version release can be found in API version history.

Examples of use

Learn what you can do with the Bookmark API.

Create a new bookmark based on current selection

Use the qlik.app.bookmark.create method to create a bookmark based on the current selection.

require(["js/qlik"], function(qlik) {
  //open apps -- inserted here --
  var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
  //create a bookmark
  app.bookmark.create('Test','Test bookmark','fmcJkH');
}

Apply an existing bookmark

Use the qlik.app.bookmark.apply method to apply an existing bookmark.

var config = {
	host: "myhost.com",
	prefix: "/",
	port: window.location.port,
	isSecure: true
};
require(["js/qlik"], function(qlik) {
  //open apps -- inserted here --
  var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
  //apply a bookmark
  app.bookmark.apply('pPvpTN');
}

Remove a bookmark that you have applied

Use the qlik.app.bookmark.remove method to remove an existing bookmark.

var config = {
	host: "myhost.com",
	prefix: "/",
	port: window.location.port,
	isSecure: true
};
require(["js/qlik"], function(qlik) {
  //open apps -- inserted here --
  var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
  //remove a bookmark
  app.bookmark.remove('pPvpTN');
}

Did this information help you?

Can you tell us why it did not help you and how we can improve it?