Qlik defines a Single configurator as a tool that provides an easy way of creating simple mashup pages without having to write any code at all. It helps to create a URL that contains the embedded Qlik Sense visualization. A user can embed a sheet, an object, or even a snapshot from the Qlik Sense application. The URL can be embedded onto the desired web page using the iframe
integration or the Div
integration.
For this recipe, we will develop a simple HTML page and then embed a Qlik Sense sheet onto the page.
<html> <title>My Web-page</title> <body bgcolor="beige"> Qlik Sense <marquee>Embedding Qlik Sense application in website using single configurator!</marquee> <img src="http://siliconcloud.com/sc- content/uploads/2015/06/qliksense.png" height="200" width="200"></body> <html>
QlikDevHub_WebPage.html
.http://localhost:4848/dev-hub
Automotive.qvf
application. Once we select the application, observe that all the sheets and the objects within the application are listed underneath. Any snapshots within the application are also listed under the Snapshot tab.iframe
tag in our HTML script for the web page is autogenerated in the Iframe box just above the Preview window.<iframe src="http://localhost:4848/single/? appid=C%3A%5CUsers%5Cnkharpate%5CDocuments% 5CQlik%5CSense%5CApps%5CAutomotive.qvf&sheet= BEUjVL&opt=currsel&select=clearall" frameborder="0"></iframe>
<marquee>
and <img>
lines in the HTML script for the web page.<iframe src="http://localhost:4848/single/? appid=C%3A%5CUsers%5Cnkharpate%5CDocuments% 5CQlik%5CSense%5CApps%5CAutomotive.qvf&sheet= BEUjVL&opt=currsel&select=clearall" frameborder="0"height="600" width="75%" align="right"></iframe>
<html> <title>My Web-page</title> <body bgcolor="beige"> Qlik Sense <marquee>Embedding Qlik Sense application in website using single configurator!</marquee> <iframe src="http://localhost:4848/single/?appid=C% 3A%5CUsers%5Cnkharpate%5CDocuments%5CQlik%5CSense% 5CApps%5CAutomotive.qvf&sheet=BEUjVL&opt=currsel& select=clearall" frameborder="0"height="600" width="75%" align="right"></iframe> <img src="http://siliconcloud.com/sc- content/uploads/2015/06/qliksense.png" height="200" width="200"></body> <html>
The embedded sheet on the web page works exactly like a sheet within Qlik Sense. The user can make any selection in the charts and the data would be filtered accordingly.
The current selections are displayed at the top. The charts contain active content, and hence they are always in sync with the actual Qlik Sense application.
The iframe
script inserted in the HTML page can further be modified as required. We can very well add multiple objects from different Qlik Sense applications on the same web page.
Another good option to explore in the configurator is adding data.
We can define explicit field value selections within the iframe
code. The data on the sheet would always adhere to these selections: