Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QDF LoadContainerGlobalVariables()

Hello all,

I am currently in a test implementation of the QDF. I am trying to load variables that have been defined in one container into another container, and I believe that the LoadContainerGlobalVariables() is needed in order to do so. However, I am having difficulty getting this function to work in general. When the script runs, I get a Script Line Error referencing this function in the script. Any advice or insight into what might be happening would be greatly appreciated.

1 Reply
Not applicable
Author

Hello,

A while since this question... I just hope the following comment is useful somehow by someone.

First, if you want to load variables from one container to another, you really should make those variables belong to the Shared container instead.

LCGV will not load variables declared in Custom.Variables.csv. But if you really want to, you can use LCGV to locate the other containers 1.BaseVariable folder and then use LoadVariableCSV to load Custom.Variables.csv from there.

Something like:

call lgcv('C1');

$(Include=$(vG.SubPath)\2.LoadVariableCSV.qvs);

call LoadVariableCSV('$(vG.C1BaseVariablePath)Custom.Variables.csv');