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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Qlikview Unlocked

You're reading from   Qlikview Unlocked Unlock more than 50 amazing tips and tricks to enhance your QlikView skills

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher Packt
ISBN-13 9781785285127
Length 196 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Roger Stone Roger Stone
Author Profile Icon Roger Stone
Roger Stone
Andrew Dove Andrew Dove
Author Profile Icon Andrew Dove
Andrew Dove
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Behind Every Successful Project Is a Plan FREE CHAPTER 2. Building the Correct Environment 3. Are You Sitting Comfortably? Be More Productive 4. It's All About Understanding the Data 5. The Right Data Model Pays Dividends 6. Make It Easy on Yourself – Some QlikView Tips and Tricks 7. Improving Chart Performance and Usability 8. To Deployment and Beyond A. Hidden Image List
Index

Include files

We have already said that you should use MUST_INCLUDE rather than INCLUDE, but we're always surprised that many developers never use include files at all. If the same code needs to be used in more than one place, it really should be in an include file.

Suppose that you have several documents that use C:\QlikFiles\Finance\Budgets.xlsx and that the folder name is hardcoded in all of them. As soon as the file is moved to another location, you have several modifications to make, and it's easy to miss changing a document because you may not even realize it uses the file.

The solution is simple, very effective, and guaranteed to save you many reload failures.

Instead of coding the full folder name, create something similar to this:

LET vBudgetFolder='C:\QlikFiles\Finance\'; 

Put the line into an include file—for instance, FolderNames.inc.

Then, code this into each script:

$(MUST_INCLUDE=FolderNames.inc) 

Finally, when you want to refer to your Budgets.xlsx spreadsheet...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image