Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Just wondering,
What's the use of different script editors in same qvw? Why can't we do it under the same script editor?
Could someone specify the cons of doing it under single tab? Also advantage of doing this under different tabs.
Thanks!!
Hi, you can use external editors.
Try "Sublime Text" https://github.com/inqlik/inqlik-tools
then in qlik scripts you can attach files to load script like this :
SET vScriptFolder = '..\10_Scripts\';
LET vInclude = '$(vScriptFolder)' & mid(DocumentName(),1, len(DocumentName())-4) & '.qvs';
LET vScriptFolder = ;
$(Must_Include='..\10_Scripts\_global_header.qvs');
$(Must_Include='..\10_Scripts\_global_vars.qvs');
$(Must_Include=$(vInclude));
$(Must_Include='..\10_Scripts\_global_footer.qvs');
LET vInclude =;
LET vScriptFolder =;
I put this text in all my qvw files, and do scripting in external editor
Hi, you can use external editors.
Try "Sublime Text" https://github.com/inqlik/inqlik-tools
then in qlik scripts you can attach files to load script like this :
SET vScriptFolder = '..\10_Scripts\';
LET vInclude = '$(vScriptFolder)' & mid(DocumentName(),1, len(DocumentName())-4) & '.qvs';
LET vScriptFolder = ;
$(Must_Include='..\10_Scripts\_global_header.qvs');
$(Must_Include='..\10_Scripts\_global_vars.qvs');
$(Must_Include=$(vInclude));
$(Must_Include='..\10_Scripts\_global_footer.qvs');
LET vInclude =;
LET vScriptFolder =;
I put this text in all my qvw files, and do scripting in external editor
Yep, I do use this approach always. Maybe this was kindaa stupid question I'll close this thread.
Thanks Chernov!!
It's basically related to documentation and ease of script management. Coding a long script with possible multiple logical sections under the same tab, would be like a book of many short stories without index page and no other indicator in between. You would find it very difficult to manage the script, difficult to search a certain section of code. So it's always wise to compartmentalize your script into multiple logical/functional tabs.
Are you searching for an editing tool to create videos and share our best experiences with friends? Let KineMaster Pro Mod APK assist you in getting the most out of your work.