Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
MattiasThalén
Partner - Contributor II
Partner - Contributor II

QDF And structure of subs

I’m curious, how do you store your subs?

I’m torn between storing them all in one script, storing them collected into “library scripts”,  or one script per sub.

The QDF subs are stored with each sub in a separate script.

What do you prefer, and why?

Qlik Sense Enterprise on Windows

Labels (1)
2 Replies
ali_hijazi
Partner - Master II
Partner - Master II

I store them in the 99.Shared_Folders container
in one file
this way you only reference one file using $(Must_Include...)
now if you want to organize your sub-routines then you can store them in corresponding files
and yes you reference the file that you think you will use in the app

there is no performance concerns
it is like pasting the refrenced sub-routines

so it is a matter of organizing your script

I can walk on water when it freezes
MattiasThalén
Partner - Contributor II
Partner - Contributor II
Author

Ok, yeah that I know.
The thing is I have one file with ~10 misc subs, ~500 lines of code.

And now I’m making a “library” of sorts around a custom mart, that will contain about 20 subs and ~1k lines.

Currently I store them in 0.Misc.qvs and 1.DataMart.qvs, but was pondering if it might make more sense to break out each sub into its own script.

But in terms of reusing the script with other clients, then one file might be better. However, I do have a separate container for the entire “DataMart framework”… so having multiple files shouldn’t be that much of a hassle.