Using data with extensions
In the previous recipes in this chapter we created our first Hello World extension, added properties and added custom components to the properties. Now, it's time to get your hands on the data inside your application.
We will go a step further in this recipe and define "Dimensions" and "Measures" in our JavaScript code block. This way we can extract the data from the tables and display it in a chart on our Qlik Sense sheet.
Getting ready
- Open Qlik Sense hub and create a new Qlik Sense application.
- Load the following script in order to auto-generate some example data:
Transactions: Load *, mod(TransID,26)+1 AS Period, Pick(Ceil(3*Rand1),'Standard','Premium','Discount') AS ProductType, Pick(Ceil(6*Rand1),'Apple','Orange','Cherry','Plum', ...
Get Qlik Sense: Advanced Data Visualization for Your Organization 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.