Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Diego_780
Creator

QS - Copy an object with master items to another App

Hello fellas,

I have this big object (container) that has many other things inside, master elements, buttons, etc... and I want to copy this big object (that it´s also an master element) and paste it into another Sense App. Because of the master items, the big object doesn´t work obviously, but I don´t want to create them all all over again, because I need to paste this big object to many apps.

Is it possible to copy and paste this objects that have many master elements in it without having to "recreate" the object because it´s master elements?

Thank you,

Diego.

Labels (2)
1 Solution

Accepted Solutions
Christos_Nikolis
Contributor II

Hi @Diego_780,

Please find a decent solution copied below - source here:Master Items: Moving Between Apps | UK's Leading Qlik Consultants (ometis.co.uk)

"

Posted on: 3rd March 2021, 12:10 pm

Moving master items between apps can turn into a burdensome task as the number of items increases in your Qlik Sense apps. As of this writing, there is still no built-in or standardised tool to manage them centrally beyond the individual application. Unfortunately, one thing that wasn’t delivered, but mentioned in Qlik’s statement of direction 2020, was a Global master item library. However, there is a simple way to move multiple master measures across apps, without using any third party extensions or without the need to recreate the master measures one at a time by copying and pasting single expressions. This blog post shares a tip to decrease the effort of exporting and importing master items between apps.

1. Collect the master items in the source app

Start by collecting all the master measures and master dimensions that you want to export by adding them to a table object in a sheet.

2. Unlink the master items

Unlink the master items to make them available as individual expressions by clicking the unlink button under each column in the table chart’s Data section. This is because they don’t exist yet in the target destination, they need to be unlinked in order to make them accessible.

3. Copy and paste the source sheet to the destination app

Go to the application overview in the source app and simply right click on the sheet where the master items have been added and select Copy. Go to the application overview in the destination app and paste the sheet.

4. Save the measures as master items

Once the sheet has been copied over, you can go ahead and save each field in the table by clicking on the ‘Add new’ master item button under each column in the table chart’s Data section.

The method described in this blog post assumes that the destination app contains the same underlying fields in the data model as the source app. This approach is therefore suitable when you need to merge apps or when you have created a significant number of master measures in one app that shares common data sets with an existing app.

[...]

By Mats Severin"

View solution in original post

6 Replies
Christos_Nikolis
Contributor II

Hi @Diego_780,

Please find a decent solution copied below - source here:Master Items: Moving Between Apps | UK's Leading Qlik Consultants (ometis.co.uk)

"

Posted on: 3rd March 2021, 12:10 pm

Moving master items between apps can turn into a burdensome task as the number of items increases in your Qlik Sense apps. As of this writing, there is still no built-in or standardised tool to manage them centrally beyond the individual application. Unfortunately, one thing that wasn’t delivered, but mentioned in Qlik’s statement of direction 2020, was a Global master item library. However, there is a simple way to move multiple master measures across apps, without using any third party extensions or without the need to recreate the master measures one at a time by copying and pasting single expressions. This blog post shares a tip to decrease the effort of exporting and importing master items between apps.

1. Collect the master items in the source app

Start by collecting all the master measures and master dimensions that you want to export by adding them to a table object in a sheet.

2. Unlink the master items

Unlink the master items to make them available as individual expressions by clicking the unlink button under each column in the table chart’s Data section. This is because they don’t exist yet in the target destination, they need to be unlinked in order to make them accessible.

3. Copy and paste the source sheet to the destination app

Go to the application overview in the source app and simply right click on the sheet where the master items have been added and select Copy. Go to the application overview in the destination app and paste the sheet.

4. Save the measures as master items

Once the sheet has been copied over, you can go ahead and save each field in the table by clicking on the ‘Add new’ master item button under each column in the table chart’s Data section.

The method described in this blog post assumes that the destination app contains the same underlying fields in the data model as the source app. This approach is therefore suitable when you need to merge apps or when you have created a significant number of master measures in one app that shares common data sets with an existing app.

[...]

By Mats Severin"

Diego_780
Creator
Author

I didn´t thought about just unlinking the master items and copy paste, but yeah, I guess is the fastest way to copy master items. Thanks!

Christos_Nikolis
Contributor II

You’re welcome @Diego_780 ☺️ your reply makes me happy, as this is the first solution I’ve ever provided (even if technically it wasn’t mine), in the Qlik Community forums. Have a brilliant day! ✌️  🔍 

liuis
Contributor II

If you use Python, you can consider using qsea package

https://pypi.org/project/qsea/

But you'll need to get access to Qlik Sense Engine Api in order to work with it.

Tina_DataVisualist2
Partner - Contributor

It works only for expression, label but not for color

liuis
Contributor II

Works now for color too (except gradients, base color only)

app.measures.add(name = 'MyName', definition = 'MyDefinition', base_color = '#f13f97')

or simply

app.measures.add(source = App1.measures['MyName'])