Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
mgranillo
Specialist
Specialist

How to copy widget or widget library

Is it possible to copy a widget or widget library?

1 Solution

Accepted Solutions
Stefan_Walther
Employee
Employee

Hi,

a widget is unique (created with a unique Id when you create it). So you should never just create duplicates in the file system. There are some common scenarios:

You want to create a copy of a widget to modify the copy then:

- Just add a single space or something to the widget, then you can use the "Save As", give it a different name

- Then you can create the newly created widget also to a different library (context menu in the Widget editor > "Move")

What would be the scenario where you want to copy Widget library? What does this solve for you? Curious to understand your scenario.

Hope this helps.

Regards

Stefan

View solution in original post

6 Replies
Stefan_Walther
Employee
Employee

Hi,

a widget is unique (created with a unique Id when you create it). So you should never just create duplicates in the file system. There are some common scenarios:

You want to create a copy of a widget to modify the copy then:

- Just add a single space or something to the widget, then you can use the "Save As", give it a different name

- Then you can create the newly created widget also to a different library (context menu in the Widget editor > "Move")

What would be the scenario where you want to copy Widget library? What does this solve for you? Curious to understand your scenario.

Hope this helps.

Regards

Stefan

mgranillo
Specialist
Specialist
Author

Stefan,

The Save as and Move options satisfy my needs.  I'm so used to seeing "duplicate" in Qlik Sense that I wasn't in the "save as" mind set.

My use case for copying is to create dev/test/production widget libraries.

On an unrelated topic, I've stopped using widgets.  I created a page with ten of the drillable KPI objects (see screenshot) and the performance  was noticeably slower than normal.  Have you had issues with speed?  Is there any way to make it faster?  My code was only slightly modified from the original code provided in the test widgets.

Thanks,

Mike

2016-08-22 16_13_59- Qlik Sense.jpg

rav
Employee
Employee

Hi Michael,

After some testing, it looks like there is a performance issue with widgets that is using element query.

Element query is used to make the widgets respond to different sizes.

Example: .kpi[min-width~="500px"] {}

Since the Drill KPI is using a lot of these rules, adding many of the into a single sheet will effect the performance of these widgets noticably.

We will look into this issue further, but in the meantime, what you can do is trying to remove as many of these element query rules as possible in the css code. This will make the widget less responisve but you will see a great increase in performace.

//Rikard

Stefan_Walther
Employee
Employee

Hi kidbank3‌,

we have made significant improvements to Widget performance in the upcoming Qlik Sense 3.1.

But still, I am very much interesting in trying to reproduce your performance issues in details. Could you maybe send me the .qvf + Widget library, so that I could test (swr (at) qlik.com).

Thx a lot!

Regards

Stefan

mgranillo
Specialist
Specialist
Author

Stefan,

I sent you an email to your qlikblog address with the app and widget code.

Mike

mgranillo
Specialist
Specialist
Author

Rikard,

I added a lot of these element queries to resize font.  That must be the issue.

Thanks

mike