Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Not applicable

Code Management: How to import scripts

Hello,

I have questions regarding code management and best practises for big projects.

Is it possible to write script functions (in the load script) one time in a certain place and use them (via some kind of import) for different apps without copying the same code into the app?

What is the best way to manage data? Is there a way to manage it globally and use it across different apps?

The goal is to avoid redundancy and minimise coding.

Thanks in advance

1 Solution

Accepted Solutions

Re: Code Management: How to import scripts

Is it possible to write script functions (in the load script) one time in a certain place and use them (via some kind of import) for different apps without copying the same code into the app?

Yes, certainly.

Is there a way to manage it globally and use it across different apps?

I think you're looking for the Qlik Deployment Framework.


talk is cheap, supply exceeds demand
4 Replies

Re: Code Management: How to import scripts

Is it possible to write script functions (in the load script) one time in a certain place and use them (via some kind of import) for different apps without copying the same code into the app?

Yes, certainly.

Is there a way to manage it globally and use it across different apps?

I think you're looking for the Qlik Deployment Framework.


talk is cheap, supply exceeds demand
Not applicable

Re: Code Management: How to import scripts

> Yes, certainly.

How so? Does this also imply using QlikView Deployment Framework?

I guess it's also usable for Qlik Sense?

Re: Code Management: How to import scripts

You can use the Include directive to include a text file (with for example script code) in your apps script. See the online help for more information: Include ‒ Qlik Sense

You do not need QDF to be able to use Include. But QDF makes it a lot easier to reuse code and other resources in apps. And yes, QDF can also be used with Qlik Sense.


talk is cheap, supply exceeds demand
Not applicable

Re: Code Management: How to import scripts

The include is what I was looking for. But the QDF also looks promising. Thanks! I appreciate your answer.