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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
AJDoc31
Contributor III
Contributor III

Copying Sections of Data Load Editor Using Automation

Hello All,

I am currently working on an application that will ultimately be used as a source for change management within my team. That is to say, we would have one 'source of truth' and apply this template to subsequent dashboards. I have been building automations and ran into this issue. Every application we manage has a different SQL query for their respective data. There is logic for QVD storage, partial reloads, and master calendars that I would like to have within this templated application. The question I have is, is there a way to copy the load script from the template application and update the sections of the target application while leaving the other sections alone?

For Example:

Template application load script sections:

QVD Logic, Reload Logic, Master Calendar

 

Target application load script sections:

QVD Logic, Reload Logic, SQL Query and Table Load, Master Calendar

 

I want to be able to push updates to each application if I change the load script on the template. Is this possible or not? I can not use the MUST_INCLUDE or INCLUDE functions with text files (that would be the easiest solution here) as I have to export the QVF and have another application host the dashboard so I need the script in each QVF. 

TIA!

Labels (3)
1 Solution

Accepted Solutions
AJDoc31
Contributor III
Contributor III
Author

I was able to do this with a custom code block in the automation space using python. It was very straight forward separating out each section by the '///$tab' phrase

View solution in original post

3 Replies
henrikalmen
Specialist II
Specialist II

There's an old discontinued(?) open source project that probably does (did) what you want: https://github.com/ptarmiganlabs/butler-app-duplicator

Perhaps ptarmiganlabs moved the functionality into some other project, I don't know. Perhaps you could find something there...

AJDoc31
Contributor III
Contributor III
Author

I was able to do this with a custom code block in the automation space using python. It was very straight forward separating out each section by the '///$tab' phrase

marksouzacosta

Hi @AJDoc31,

I have made a process to dynamically create Qlik Sense Apps using Automations and Script Templates with replaceable areas, very similar to what you have described.

marksouzacosta_0-1743385150166.png

You can find the full Automation Code here - it is part of a bigger article that I'm finishing up:
https://github.com/Data-Voyagers/ParquetVsQVD/blob/main/Automations/Parquet%20vs%20QVD%20Tests%20-%2...

 

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com