The Qlik Sense content can be embedded through
- iFrame integration using the App Integration API (single integration)
- Div integration using the Capability APIs.(provided by qlik)
Method 1
First method would be pretty easier
References: https://help.qlik.com/en-US/sense-developer/3.0/Subsystems/Mashups/Content/AppIntegrationAPI/app-integration-api-examples.htm
step 1: login to qlik sense desktop, navigate to single api.
Single api is app provider by qlik sense to identify qlik applications with specific application ID.
step 2: get the application ID which you need.
step 3: use IFrame in HTML page to embed qlik objects.
Paste the iframe tag in a html page and set the height and width
step 4:
Example ApplicationID would be like this: 2fd30673-866d-4bb6-b3be-c5708555ee1f
Method 2
Using Capabality API
Configure web application to communicate with qlik server. Host and port number of the qlik server should be defined.
Using java script in a html
Sample javascript code :
var config = {
host: "myhost.com",
prefix: "/",
port: window.location.port,
isSecure: true
};
require(["js/qlik"], function(qlik) {
// open the app
var app = qlik.openApp("c31e2aba-3b46-4b13-8b87-c5c2514dea1d", config);
// insert Qlik objects into the page.
app.getObject(document.getElementById("divID"), "objectID");
}