Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

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.

bibopipo
Contributor II

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
Contributor

Re: include script as parameter

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

2 Replies
diegofcaivano
Contributor

Re: include script as parameter

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

bibopipo
Contributor II

Re: include script as parameter

Thanks very much !!

Community Browser