Qlik Sense is all extensions. Even the out of box objects are extensions. It also comes with some samples of additional Extensions.
After installing Qlik Sense Desktop, have a look in %userprofile%\Documents\Qlik\Examples\Extensions. You will find several sub-folders, each containing one extension.
If you have experience with QlikView 10/11 extension objects (or have read my blog entries on how to create extensions) then you will see immediately that there is a different way of creating extensions in Qlik Sense.
There are two core files that you must have:
- a .QEXT file which contains the JSON description of the extension that will be used within the desktop client.
Additional files can be added as required.
If you copy one of the extension folders into %userprofile%\Documents\Qlik\Sense\Extensions and restart the Qlik Sense Desktop (F5 may be enough) then the extension should appear.
You can also simply create your own sub-folder and create the .QEXT and .JS files and they will be picked up. However, it is easier to use the Workbench to create your extension from a template. To run the Workbench, first make sure that Qlik Sense Desktop is running (it provides the web service for this) and then connect to http://localhost:4848/workbencheditor.
There is no documentation for the extensions in the default help for Qlik Sense, but you may be able to access the beta documentation at: http://betahelp.qlik.com/0.95/en-US/online/index.html.
Some of you may have seen a post of mine where I had proposed a new chart type called a Pie-Gauge. I had already created a QlikView v11 extension to generate these gauges using Raphaëljs to draw the pies so I wanted to have a go at doing this in Qlik Sense. After a bit of trial and error, and looking at other extensions (including Ralf Becher's implementation of the d3 dependency wheel), I was able to get what I was looking for:
I am happy for anyone to grab the code for this from my github repository. Just grab the whole RedmondPieGauge folder and drop it into your %userprofile%\Documents\Qlik\Sense\Extensions folder and restart the Qlik Sense Desktop.
You need to specify one dimension and then two expressions - one for Actuals and one for Target.
Each of the objects - including the text labels - are clickable to make selections exactly as if they were a Qlik Sense object. This also implements a slider in the properties to allow you set a doughnut size. Anyone who knows me will know that this was definitely an academic exercise - I hate doughnut charts!
Stephen Redmond is author of QlikView Server and Publisher and the QlikView for Developer's Cookbook
He is CTO of CapricornVentis a
QlikView Elite Partner. We are always looking for the right people to join our team.
Follow me on Twitter: @stephencredmond