Qlik Sense Extensions pt1

    Source: http://qliktales.wordpress.com/

    These last days I noticed that there is a lack of visualizations and customizations in Qlik Sense.  We cannot even change the header colour on a simple table! This fact motivated me to find out how to build my own extensions.

    As there is no documentation at all in this aspect, I had to follow a try and catch procedure to archive this “solution”. I had to search a loot to be able to build my first extension and now, I will explain how you can do it by yourself.

    The extensions in Qlik Sense have to be developed with Java Script. The man advantage of this fact is that we can use whatever Java Script library to build our extensions. Qlik Sense includes the JQuery Library by default to make easier the process.

    In order to build the first extensions, we should open Qlik Sense and then  go to Internet Explorer and type in the Navigation Bar the following http://localhost:4848/workbench/.

    This link will open the IDE used by Qlik Sense to develop our extensions

    Extensionspt1-1

     

    Inside this IDE, we should press “New” in order to create our new extension. We will put a name to the extension and chose a template. This template will create the stub of the extensions, making easier the development. In this case we will chose the table template

    Extensionspt1-2

    Once the extension is created we may press edit to begin editing it.We will see that the extension have 3 main files: ExtensionDemo.Qetx, ExtensionDemo.js and style.css.

    This first file contains a structure where we can define the main properties of our object, like the name or the icon that will be shown on Qlik Sense tool bar. In the second file (js) there is all the main code of our Extension ( we will see the code in detail in the next post ). Finally, on the css file we will have all the css style for our extension.

    Extensionspt1-3

    Now, if we go to Qlik Sense we will see on the leftmost bar our new extension. We should drag and drop it to the main pane an configure it normally. This time, as it is a simple table, we can put as many dimensions and expressions as we need.

     

    Extensionspt1-4

    On the next days I will be fully focused on the extensions topic so I will keep posting my findings to create some kind of documentation.