Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
amghorbel
Contributor
Contributor

Export script from Qlik sense application

Hello,

I'm wondering if there is a possibility to export script from Qlik sense application into qvs files ? 

if yes, please give me steps to do that.

Thank you.

 

Labels (2)
5 Replies
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi there

I am not sure what you mean by export, but you can copy it, paste it into a text file and then save it as a .qvs instead of a .txt.

You can then use them in your script by using Include or Must_Include. Have a look at https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVari... .

Hope this helps.

Regards,

Mauritz

anthonyj
Creator III
Creator III

I was looking for an answer to the question of "How to read a .qvs file that was already in the cloud" Since there was no export option to be able to read the .qvs file in notepad once it has been uploaded to the cloud.

There may be an easier way than this but after trying a few different techniques, I found I could read the .qvs file into a Qlik app as a text file with no headers. This read all the lines in so you can then visualise the script in a table.

For example:

I created an AutoCalendar.qvs script that included more date options than the standard. To read the contents of the qvs file I used this in a dummy app's load script.

AutoCalendarScript:
load
@1 as AutoCalendar
from [lib://DataFiles/AutoCalendar.qvs](no labels, txt);

I can now view the code in a table or use the concat( ) function over the field to get all the code into one cell.

wizardo
Creator III
Creator III

hi,

i totally agree

i know there are workaround and you can just copy  the script, but its not comfortable and its time consuming
an easy option in the UI to export/import to QVS would be great, another suggestion is to be able to create an input line with a wizard by browsing to the file location via data connections .

this feature is even more necessary in SaaS

davidhechler
Partner - Contributor II
Partner - Contributor II

Hi,

in QlikView there is an option to export and save the data load script in a file (.qvs):davidhechler_0-1694770418115.png
I wonder, why this is not possible in Qlik Sense, as it is a very helpful feature.

Best regards,
David

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @amghorbel 

not as easy as qlivkiew or right click, bu can be done by using API

https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-How-to-export-app-scripts/ta-p/17...

 

hope this helps,

help users find answers! Don't forget to mark a solution that worked for you & to smash the like button!