Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sujit_nath
Creator III
Creator III

Use of different script editors in a QVW file.

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!!

1 Solution

Accepted Solutions
Chernov
Creator
Creator

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

View solution in original post

5 Replies
Chernov
Creator
Creator

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

sujit_nath
Creator III
Creator III
Author

Yep, I do use this approach always. Maybe this was kindaa stupid question I'll close this thread.

sujit_nath
Creator III
Creator III
Author

Thanks Chernov!!

tresesco
MVP
MVP

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.

LeightonBaldwin
Contributor
Contributor

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.