Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I exported the script in my Qlikview document by doing a File -> Export to Script File in the script editor. I was looking for the menu to reverse this operation – meaning I wanted to re-import this script after making changes. I couldn’t find any menu option. Is this possible?
Thanks
There are two menu options to reimport script.
1. Insert > Script File.
2. File > Open External Script File.
The first inserts the file contents at the cursor position. It's what I use.
-Rob
Hi Rob,
is there a way that tabs are getting reconstructed
(using the automatically generated comments like
///$tab SalesRep
when exporting as script)?
Neither is doing what I would like to do. The document I'm looking at, written by someone, has 10 tabs. Each
tab has scripts in it. I want to be able to import the script file and have the code placed in the tab where they belong to.
Is this possible?
Close the script editor. Then reopen it. The script will automatically be distributed to tabs based on the ///$tab comments.
-Rob
So I closed the editor and re-opened it. The problem is that it re-created all the tabs with the same name. I now have duplicate tab names. Is this what you expected or maybe I didn't do it in the right sequence?
It's what I expected. The process creates a new tab for each ///$tab name. It will not merge with an existing tab of the same name. You have to do that manually, which is pretty easy with the tab promote & merge menu commands.
If the issue is more complex than that and your'e willing to write some macro code, you can update script via the API.
-Rob
OK, sounds good. Thanks for your help.
Just to clarify ...
The "Merge with Previous" isn't exactly merging. This is rather an append operation. You will still need to remove the duplicate code/script manually yourself after you do a promote/demote and merge with previous.
Yes, that's correct. It's not an intelligent merge. It just appends the entire contents of one tab to the previous tab.
-Rob