Creating a simple HTML table

We can, of course, use extension objects to pass data through to third-party controls, for example, Flash or Silverlight. But we can also fully control the way we display the data using HTML and JavaScript, especially if we employ one of the many visualization libraries available, such as D3.js.

In this example, we are going to create a simple HTML table based on the data in QlikView.

Getting ready

Load the following script:

Sales:
LOAD * INLINE [
    Country, Sales
    USA, 1000
    Mexico, 600
    Canada, 700
    UK, 900
    Germany, 800
];

How to do it…

These steps show you how to create a simple HTML table extension:

  1. Open your user profile folder (usually C:\Users\your.username) and browse down to AppData\Local\QlikTech\QlikView\Extensions\Objects ...

Get QlikView for Developers Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.