Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
QlikView for Developers Cookbook
QlikView for Developers Cookbook

QlikView for Developers Cookbook: Take your QlikView training to the next level with this brilliant book that's packed with recipes which progress from intermediate to advanced. The step-by step-approach makes learning easy and enjoyable.

eBook
$9.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

QlikView for Developers Cookbook

Chapter 2. Layout

In this chapter, we will cover:

  • Changing the default object layout options

  • Changing the default selection color scheme

  • Modifying the green, white, and gray selection color schemes

  • Modifying the green, white, and gray selection color schemes on QlikView Server

  • Using containers as an alternative to multi-boxes

  • Using the design menus to custom format a cell

Introduction


There are some best practices that one should always follow when creating a layout in QlikView.

For general advice on visualizing data, I recommend the following people:

Name

Publication

Website

Stephen Few

Show Me The Numbers, Information Dashboard Design, and Now You See It.

www.perceptualedge.com

Robert Kosara

Eager Eyes Blog

www.eagereyes.org

Andy Kirk

Data Visualization: a successful design process

www.visualisingdata.com

Alberto Cairo

The Functional Art

www.thefunctionalart.com

There are, of course, many others on note, but the list could go for several pages and you wouldn't get to the bottom of it!

My purpose in this chapter is to show you how to layout and configure documents so that you can implement best practices.

Changing the default object layout options


The default layout option in QlikView is Simplified. When you look at the Layout tab of any object, you will only see, two options on the left-hand side: Shadow Intensity and Border Width:

While these options suffice for 99 percent of all layouts, there are many other options that we can make available to us, if required.

Getting ready

Open any existing QlikView document with at least one listbox (perhaps one of the documents from Chapter 1, Charts).

How to do it…

Follow these steps to change the default layout options:

  1. From the Settings menu, click on Document Properties (Ctrl + Alt + D).

  2. On the General tab, set the Styling Mode to Advanced. Click on OK to close the properties.

  3. Notice that the sheet objects have changed already, probably with rounded corners.

  4. Open the properties of any object and look at the Layout tab. Notice that there are now many more options.

  5. Modify the options and notice what happens.

How it works…

Enabling the Advanced styling mode...

Changing the default selection color scheme


QlikView has six precanned color schemes, such as Classic, Forest, Spring, Lime, Classic Extended, and Light. Out of box, the default selection color scheme is Light. The Possible options have white background, the Selected options are green, and the Excluded options have a very light gray.

On some displays, especially projectors or plasma screens, the colors do not come out as well; especially the light gray can look almost white.

Also, business users sometimes request that the color scheme be changed. While it is not straightforward to change from the green/white/gray options, there are several options to choose from (as long as they are green/white/gray!).

Getting ready

Open any existing QlikView document with at least one listbox (perhaps one of the documents from Chapter 1, Charts).

How to do it…

These steps will show you how to change the default color scheme:

  1. From the Settings menu, click on Document Properties (Ctrl + Alt + D).

  2. On the General...

Modifying the green, white, and gray selection color schemes


QlikView selection colors are green/white/gray. They have a brand around this and are not keen for anyone who can change them.

It is, however, possible to do so. We will use the QlikView API to modify the user's color preferences.

Getting ready

Open any existing QlikView document with at least one listbox (perhaps one of the documents from Chapter 1, Charts).

How to do it

Follow these steps to change the default green, white, and gray color schemes:

  1. From the Tools menu, select Edit Module (or press Ctrl + M).

  2. Enter the following code:

    Sub SetColorPrefs()
    
      Dim UserPrefs
      
      set UserPrefs = _
        ActiveDocument.GetApplication.GetUserPreferences
    
      ' Set the "Selected" Color
      UserPrefs.CustomSelBgColor(1).PrimaryCol.Col = _
        RGB (0,0,255)    ' Blue
      UserPrefs.CustomSelFgColor(1).PrimaryCol.Col = _
        RGB (255,255,0)  ' Yellow
      ' Set the "Possible" Color
      UserPrefs.CustomSelBgColor(2).PrimaryCol.Col = _
        RGB (255,255,0)  ' Yellow...

Modifying the green, white, and gray selection color schemes in QlikView Server


In the previous recipe, Modifying the green, white, and gray selection color schemes, we used the API to modify a user's default color scheme. However, this is a user setting and doesn't automatically apply to QlikView Server.

In this recipe, we will take the setting generated in the last recipe and apply them manually to QlikView Server.

Getting ready

Complete the previous recipe, Modifying the green, white and gray selection color schemes.

How to do it…

These steps show you how to modify the green, white, and gray color scheme on QlikView Server:

  1. Locate your Settings.ini file in C:\Users\username\AppData\Roaming\QlikTech\QlikView.

  2. Open the file in Notepad and locate the CustSel entries. Select them all and copy them to the clipboard (Ctrl + C).

  3. On the QlikView Server, stop the QlikView Server Service.

  4. Locate the Settings.ini file in C:\ProgramData\QlikTech\QlikViewServer.

  5. Paste the CustSel values from the user Settings...

Using containers as an alternative to multiboxes


Multi Boxes have been around in QlikView for a long time. They can be a useful way of adding many selectors to the layout when there is little room for a lot of listboxes.

They can be presented either in the default, lateral mode, with the drop-down list across from the label, or in Grid Mode, with the drop-down list underneath the label.

I used Multi Boxes for many years and quite liked the Grid Mode style. However, there was a major problem. Unfortunately, the Grid Mode style is not supported in the AJAX ZFC web client.

Since Version 10 of QlikView, I have moved away from Multi Boxes and instead use a container control with listboxes. I believe that it is a much better way of accessing many fields in a small form factor.

Getting ready

Load the following script:

LOAD * INLINE [
    Country, Product, SalesPerson, Category, Sales
    USA, Widget, Joe, Widgets, 1234
    USA, Woggle, Joe, Widgets, 1983
    USA, Brogue, Jane, Footwear, 1175
    USA...

Using the design menus to custom format a cell


There are two design menus that can appear when you right-click an object on the layout. They are:

  • Order: This is applicable to all objects, and this menu has a submenu that allows you to adjust the Layer of an object.

  • Custom Format Cells: This is applicable only to the three grid objects (Table Box, Straight Table, and Pivot Table), and this menu allows you to apply your own custom color, border, and font options to a cell.

These menu items do not appear by default. There are two ways of making them available. You can either turn on the Design Grid option (from the View menu), or you can turn them on by changing your User Preferences, which we will do in this recipe.

Getting ready

Load the following script:

Load * Inline [
  Country, Sales, Costs
  USA, 1203, 1043
  UK, 987, 995
  France, 1118, 1022
  Germany, 876, 754
];

How to do it…

Use the following steps to custom format a cell in the table:

  1. Create a straight table with Country as dimension and...

Left arrow icon Right arrow icon

Key benefits

  • Learn beyond QlikView training
  • Discover QlikView Advanced GUI development, advanced scripting, complex data modelling issues, and much more
  • Accelerate the growth of your QlikView developer ability
  • Based on over 7 years' experience of QlikView development
  • Written in a handy Cookbook style with each recipe as a self-contained learning module

Description

QlikView has been around since 1993, but has only really taken off in recent years as a leader in the in-memory BI space and, more recently, in the data discovery area. QlikView features the ability to consolidate relevant data from multiple sources into a single application, as well as an associative data model to allow you to explore the data to a way your brain works, state-of-the-art visualizations, dashboard, analysis and reports, and mobile data access. QlikView for Developers Cookbook builds on your initial training and experiences with QlikView to help you become a better developer. This book features plenty of hands-on examples of many challenging functions. Assuming a basic understanding of QlikView development, this book provides a range of step-by-step exercises to teach you different subjects to help build your QlikView developer expertise. From advanced charting and layout to set analysis; from advanced aggregations through to scripting, performance, and security, this book will cover all the areas that you need to know about. The recipes in this book will give you a lot of the information that you need to become an excellent QlikView developer.

Who is this book for?

This book is for anyone who has either attended QlikView Developer training or has taught themselves QlikView from books or online sources. You might be working for a QlikView customer, partner, or even QlikView themselves (or want to!) and want to improve your QlikView skills.

What you will learn

  • Use QlikView charts to create more advanced visualizations
  • Layout your screen and use different color schemes
  • Get to grips with set analysis
  • Use Total and AGGR for advanced aggregations
  • Use macros to perform advanced tasks
  • Overcome data modelling challenges
  • Use some of the most useful functions in QlikView
  • Write great script
  • Improve the performance of your application
  • Secure your application
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 24, 2013
Length: 290 pages
Edition : 1st
Language : English
ISBN-13 : 9781782179733
Vendor :
Qlik
Category :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Publication date : Jun 24, 2013
Length: 290 pages
Edition : 1st
Language : English
ISBN-13 : 9781782179733
Vendor :
Qlik
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 114.98
QlikView for Developers Cookbook
$48.99
QlikView 11 for Developers
$65.99
Total $ 114.98 Stars icon
Banner background image

Table of Contents

11 Chapters
Charts Chevron down icon Chevron up icon
Layout Chevron down icon Chevron up icon
Set Analysis Chevron down icon Chevron up icon
Advanced Aggregations Chevron down icon Chevron up icon
Advanced Coding Chevron down icon Chevron up icon
Data Modeling Chevron down icon Chevron up icon
Extensions Chevron down icon Chevron up icon
Useful Functions Chevron down icon Chevron up icon
Script Chevron down icon Chevron up icon
Improving Performance Chevron down icon Chevron up icon
Security Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(24 Ratings)
5 star 70.8%
4 star 12.5%
3 star 8.3%
2 star 4.2%
1 star 4.2%
Filter icon Filter
Top Reviews

Filter reviews by




gaurav babbar Jul 04, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Lots of tips and tricks which one can learn only after years of trades.
Amazon Verified review Amazon
O.T. Jul 29, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"QlikView for Developers Cookbook" should find its prominent place on every serious QlikView developer's desk. This is a portable guide to many "secrets of trade" that have been mastered by a very creative QlikView practitioner, through years of developing advanced QlikView applications.While it's not a typical tutorial book that takes the reader from the basics to the advanced topics, the Cookbook offers hundreds of specific solutions, from curiously obscure to tremendously useful, and none are too obvious.Stephen Redmond, a brilliant QlikView practitioner, is showing his magic tricks, one after another, and unlike any other magicians, he immediately reveals to the audience how the trick works. The book is even structured this way. In each chapter, after the problem at hand is presented, the reader will find a section "Getting Ready", where each exercise is prepared with a simple load script and some initial configurations. Then, the next section "How to do it", shows the trick by walking the reader through the "magical" configuration or a setup that makes the trick work. Most training manuals stop there, assuming that the rest is obvious, - which is rarely the case. Stephen is going further by adding a section "How it works", which provides a nice explanation of the settings and the underlying logic that made the trick possible. Furthermore, when there is additional lesson to be learned, an additional section "There's more..." includes any additional related information. I found this form of explanation extremely educational - I don't just blindly learn HOW to do something, I'm also learning WHY should it work and WHAT ELSE do I need to know about it.As an experienced QlikView practitioner, I didn't expect to learn a lot of new stuff, and I was proven wrong. Many of the ideas in the Cookbook looked new and refreshing for me. I truly believe that every serious QlikView developer will find a lot of interesting insight in this book. I certainly did.Oleg Troyansky,President,Natural Synergies, Inc.
Amazon Verified review Amazon
Vassya Nov 03, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Amazing book, even for seasonal qv developer. It sets a certain baseline of skills and technics, which a developer should remember and use. All the most important aspects of script writing, data modeling, interface design are presented - almost nothing to add!
Amazon Verified review Amazon
Shilpan Jun 29, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I admire Stephen and regularly read his blog. His book didn't disappoint me either. Qlikview cookbook is full of practical recipes that you can apply in real world applications.This book is not for novice Qlikview developer. But, if you have some experience with Qlikview, I highly recommend that you buy this book because it will help you grow as a professional Qlikview developer.I have my own Qlikview blog as I am passionate about Qlikview development. I have written a very comprehensive review on my blog. So, if you are thinking about purchasing this book yet wanted to know more about its content, please visit my blog.[...]
Amazon Verified review Amazon
np Aug 07, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is not for new learners but if you have couple of months experience this book gives lots of tips handling different thinks in qlikview.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela