Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ananyaghosh
Creator III
Creator III

How to include script?

Hi,

I need to include a .txt file or a script file to include into another script file. What to do now?

Also what will be the extension to store a script file in a particular location and after storing it how can I run it from QlikView?

9 Replies
Not applicable

hi

try  assigning a variable.

Let LoaderPath = '..\..\loader scripts\';

is the correct usage

simsondevadoss
Partner - Creator III
Partner - Creator III

whether you need to export the script ?

If so , edit script ->file->export to script file. Save it as qvs.

If you need to import it into qlikview , edit script ->insert->script file

Not applicable

Hi Sandip,

A script file can be stored using the extension .qvs

If you want to include that script in another script you can use the following statement

$(Include=..\..\..\scriptname.qvs)

PS: Full file path(absolute or relative) for qvs is required

Regards,

Purvisha

ananyaghosh
Creator III
Creator III
Author

So is it binary load? if not what is the difference between binary load and include startement?

Ralf-Narfeldt
Employee
Employee

It's not a binary load.

  • Binary load is when you load the actual data from another .qvw document.
  • Include is when you insert script code from an external text file into the script
ananyaghosh
Creator III
Creator III
Author

in binary load can we load .qvd file to load data or .qvw file to load both data and script? also in binary load if we load .qvw file then the graph object that we created also copied into existing .qvd file?

Anonymous
Not applicable

.qvd are pure data files

and in binary load only data is copied not the UI objects

Anonymous
Not applicable

you can refer to this for loads details http://community.qlik.com/message/240412#240412

Ralf-Narfeldt
Employee
Employee

QVD is loaded with an ordinary LOAD statement, not BINARY.

With BINARY you load entire datamodel from a QVW, not any UI.