Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

include script as parameter

Hi,

I'm using the following  command    $(include=c:\myfolder\scripts\ra_beginscript.qvs);

in my script, but I could have different positions of this file ( for example d:\......  or e:\newfolder\.....)

Is it possible to use a parameter  like  $(include= myparameter);

I tried something but it simply doesn't work:

let var_myinclude = '$(include=' & myparameter & ')';

Nothing happens. What I'm doing wrong ?

Help please

Thanks in advance

1 Solution

Accepted Solutions
diegofcaivano
Partner - Creator
Partner - Creator

If I get you right, by 'parameter' you mean another variable. In that case it should be evaluated.

Code directly:

$(include=$(myparameter));

 

Regards.

//EDIT:

The path must be proper text. The following example worked fine for me.

SET vIncludePath = 'C:\QlikView\Config.txt';

$(Include=$(vIncludePath));

El mensaje fue editado por: Diego Caivano

View solution in original post

2 Replies
diegofcaivano
Partner - Creator
Partner - Creator

If I get you right, by 'parameter' you mean another variable. In that case it should be evaluated.

Code directly:

$(include=$(myparameter));

 

Regards.

//EDIT:

The path must be proper text. The following example worked fine for me.

SET vIncludePath = 'C:\QlikView\Config.txt';

$(Include=$(vIncludePath));

El mensaje fue editado por: Diego Caivano

Anonymous
Not applicable
Author

Thanks very much !!