Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Muthu
Not applicable

Include Function

Hi,

Can Anyone tell me about the include function in Qlikview ??

Muthu

2 Replies
datanibbler
Not applicable

Re: Include Function

Hi Muthu,

INCLUDE is a statement you can use in a scrit. It allows you to include code that you have written in a qds_file (just a txt file, no need to rename it actually) somewhere on your server into that particular script. It will then execute just like it was written into that script.

It helps you to consolidate things - blocks of code that you need often, variables that are used all over, a palette of coded colours or anything can thus be taken out of the individual scripts and stored only once.

HTH

morganaaron
Not applicable

Re: Include Function

Include and Must_Include are special variables - they allow you to read in a file that should be in the script, and must_include will cause the reload to fail if it can't find the file during reload. It's often used to be able to read in the same script statements or variables into every application you use, allowing you to reuse script without needing to write it out again etc.