Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
jrholden
Contributor
Contributor

Single Mapping Load Script

Is it possible to read mapping load code from an external document?  I am asking because I have multiple applications that use the same mapping load script and every time I need to make a change to the code I have to update it in multiple locations.  It would make my life much easier if I could update the code in a single location.  I use a similar technique with my variables.   However, I have not found a similar solution to my mapping load issue.

6 Replies
mikaelsc
Specialist
Specialist

organize your projects/data in 2/3 layers... with reusable qvd's.

 

https://community.qlik.com/t5/New-to-Qlik-Sense/Three-Layer-Architecture-In-Qlik/m-p/1197497

jrholden
Contributor
Contributor
Author

I do not have any control over our architecture.  However,our projects are organized in a 3 layer architecture with reusable qvds.  However, our data models are denormalized; hence the need to use the same mapping load for multiple applications.   I must be miss understanding your response to my issue.

Kushal_Chawda

Probably you can save your mapping load script in QVS file.  Then you can call that QVS file in load script editor using include statement in start of the script. So if you need any changes you can do it in QVS file and save it. see below links

https://community.qlik.com/t5/New-to-QlikView/how-to-create-a-qvs-file-using-a-notepad/td-p/960655

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

 

jrholden
Contributor
Contributor
Author

I have experience in loading a .txt file but it does not work the same when loaded as a mapping load.

marcus_sommer

I think you need to elaborate a bit more what you did and what not worked - any errors, unexpected results, nothing happens ... ?

- Marcus

Brett_Bleess
Former Employee
Former Employee

You do not need QVS file, just a text file and the Include statement, the file contents will be treated as script automatically, see the following Help link, hopefully this gets you squared away.

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/Syste...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.