Building mashups

In the context of web development, a mashup is a web page or web application that uses content from more than one source to create a single new service displayed in a single graphical interface.

The Mashup API enables you to easily and quickly integrate with your Qlik Sense objects to produce enriched results that were not necessarily the original reason for producing the source app in Qlik Sense. You can reuse Qlik Sense visualizations, including your custom extensions, and you can also make use of Qlik Sense data and calculations.

By using active content, your visualizations are updated when state changes. You can also subscribe to data and change the state through the visualizations.

In short it works like the following:

  • You open a web socket to Qlik Sense Engine using the qlik.openApp method.

  • Objects use the same web socket, that is the same session, which means they are connected.
  • Qlik Sense objects work just as they do in the Qlik Sense client.

Connecting your mashup to Qlik Sense data

This section describes how the mashup code connects to the Qlik Sense data.

Single Qlik Sense object integration

You can integrate single Qlik Sense visualizations, sheets or snapshots into an iframe. You use the Single Integration API to define how the object should be integrated into your web site.

The Single configurator is a Qlik Sense tool that provides an easy way of creating simple mashup pages without having to write any code at all. It returns a Qlik Sense object, which is identified in an URL. The Qlik Sense object is typically a visualization from an app, for example a Line chart.

The Single configurator creates an URL that returns a complete HTML page containing for example an embedded Qlik Sense visualization. This URL can be embedded in a web page, for example by including it in an iframe.