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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Jonathan_Alm
Partner - Creator
Partner - Creator

Add code to qvf

Hi,

We have a use case where we send a qvf to an external supplier. We will send a new qvf everyday and they will publish that app in their environment. 

They need to add code to the qvf that we send everyday so that they can add section access to the app.

Is it possible to add code to a qvf without having to open the qvf and insert code that points to the code that holds the section access (section_access.qvs)? I have been looking through the API:s but haven't been able to find anything.

If that would be possible the supplier could run a job everyday that adds this code snippet to the qvf. 

 

Kind regards, Jonathan

Labels (2)
4 Replies
skamath1
Creator III
Creator III

You can explore the option of $include scripting. Please refer to the help section in Qlik Sense

https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVari...

 

In your code, you can include the file with empty lines.  The same file on the vendor should have the required code. 

 

 

 

Jonathan_Alm
Partner - Creator
Partner - Creator
Author

Hi,

We are using includes on our side to point to libraries that we have on our servers. But if we would add an Include line in the script, I guess it would require us to know their paths on their side. This would create a dependency between us and the supplier if they would change their paths or in any way make changes on their side. 

Kind regards, Jonathan

skamath1
Creator III
Creator III

Yes, you and the vendor needs to agree to create the same file name and a lib connection name, 

For example : $(Must_Include=lib://DataFiles/abc.txt);  

The actual path can be different. 

 

Jonathan_Alm
Partner - Creator
Partner - Creator
Author

Hi,

yes and that is what I wanted to prevent so that there is no dependency between us and the vendor. 


So my question was if it was possible to add code to a qvf without having to open the qvf and insert code that points to the code that holds the section access (section_access.qvs)? Via som API or if someone had any experience with this type of use case?

 

Kind regards, Jonathan