Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Export to File Script question

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

11 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

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

http://masterssummit.com

http://qlikviewcookbook.com

swuehl
MVP
MVP

Hi Rob,

is there a way that tabs are getting reconstructed

(using the automatically generated comments like

///$tab SalesRep

when exporting as script)?

Anonymous
Not applicable
Author

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?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Close the script editor. Then reopen it. The script will automatically be distributed to tabs based on the ///$tab comments.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Anonymous
Not applicable
Author

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?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

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

http://masterssummit.com

http://qlikviewcookbook.com

Anonymous
Not applicable
Author

OK, sounds good.  Thanks for your help.

Anonymous
Not applicable
Author

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.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Yes, that's correct. It's not an intelligent merge. It just appends the entire contents of one tab to the previous tab.

-Rob