Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

kidbank3
Contributor III

How to copy widget or widget library

Is it possible to copy a widget or widget library?

Tags (2)
1 Solution

Accepted Solutions
Employee
Employee

Re: How to copy widget or widget library

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

6 Replies
Employee
Employee

Re: How to copy widget or widget library

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

kidbank3
Contributor III

Re: How to copy widget or widget library

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

Employee
Employee

Re: How to copy widget or widget library

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

Employee
Employee

Re: How to copy widget or widget library

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

kidbank3
Contributor III

Re: How to copy widget or widget library

Stefan,

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

Mike

kidbank3
Contributor III

Re: How to copy widget or widget library

Rikard,

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

Thanks

mike