Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
lucianoginqo
Partner - Contributor III
Partner - Contributor III

QDF and Qlik Sense. Creating Shared Global Variables

Hi all,

I might be wrong but using the QDF with Qlik Sense, the Shared Global Variables are not automatically generated?

I currently use a separate LIB mount and I am testing it using Qlik Sense Desktop

The Variables for the home container are generated correctly but the Shared variables are not created

I am trying this syntax

SET vG.HomeContainer='lib://1.LibName\';

$(MUST_Include=$(vG.HomeContainer)\InitLink.qvs);

Or this

$(MUST_Include=lib://1.LibName/3.Include\1.BaseVariable\1.Init.qvs);

Seems like the LCGV( function is not working for me too

Anybody with the same experience?

Thank you

18 Replies
Magnus_Berg
Employee
Employee

Think I found the problem with the new FileExist function, try this one instead.

Best regards

Magnus

namhai_fr
Partner - Contributor
Partner - Contributor

Hi Magnus,

Your last fix is working with Qlik Sense Desktop. Please find the log file if it can be useful.

Thanks a lot for your fix.

Best regards.

Nam-Hai

namhai_fr
Partner - Contributor
Partner - Contributor

Hi Magnus,

Just to confirm that your fix works with Qlik Sense server as well.

Best regards.

Nam-Hai

maximiliano_vel
Partner - Creator III
Partner - Creator III

It seems that the fix broke the Container Map Editor in the Variable Editor.qvw. Please see attached screen shot.

Magnus_Berg
Employee
Employee

Thanks Maximiliano, identified and fixed this problem (attached), due to the fact that the updated function did not recognize folders, just files.

Best regards

Magnus

Not applicable

Hello , I have the same problem , but in my case is not solved by replacing the file.


Init QDF.PNG


Init QDF error.PNG

ziadm
Specialist
Specialist

Hi Magnus

Please post an simple qvf (qliksense file) with a sample codes of includes and global variable

I have read the document on QLiksense notes and I am not able to load the global variables

Thanks

Magnus_Berg
Employee
Employee

Hi Ziad, that is strange as it works for me. There is a bug in Qlik Sense 2.2 (fixed in 3.0 soon to be released) but I guess you've seen the workaround available in this article? I've just updated the Qlik Deployment Framework-Qlik Sense additional notes as well. 

My setup is as follows:

script.PNG

I have three containers connected, ASales (home container), AStore and Shared. Will send out an updated Qlik Sense guide as well

Regards

Magnus

ziadm
Specialist
Specialist

Thanks Magnus

it works .. The problem was the  Function FileExist .. I thought I have replaced it everywhere which was not the fact..

This is how its done for those who are still having a problem