Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Text file into variable

Good morning all !

Someone know how can I insert the content of a text file into a variable in the script ?

Thanks a lot

1 Solution

Accepted Solutions
amars
Valued Contributor

Re: Text file into variable

Hi Victor,

It is same as declaring a Variable inside your script.

Write

Let vTest = 'Test Load';   

inside your text file.

Now Gp to your Dashboard -> Edit Script -> Insert -> Include Statement -> Then select the Text File just created.

Load the Dashboard and see the Variable is created inside your dashboard.

Thanks.

Amar

3 Replies
amars
Valued Contributor

Re: Text file into variable

Hi Victor,

It is same as declaring a Variable inside your script.

Write

Let vTest = 'Test Load';   

inside your text file.

Now Gp to your Dashboard -> Edit Script -> Insert -> Include Statement -> Then select the Text File just created.

Load the Dashboard and see the Variable is created inside your dashboard.

Thanks.

Amar

Not applicable

Re: Text file into variable

Hi !

I does not work, I've got an error on the line :

tab2 = $(Include=c:\users\vboudart\desktop\modeli\appli\textfile.txt);

The content of my text file is like this : France,Belgium,USA,   .....................

Not applicable

Re: Text file into variable

Ok, I have add ' like this ;

LET tab = '$(Include=c:\users\vboudart\desktop\modeli\appli\textfile.txt)';

and it's work.

Thanks

Victor

Community Browser