Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Script lost from QVW when distributing using 'Distribute to Folder'

Hello,

We're facing an issue when we distribute the QVW file via Distribute tab and selecting option  'Distribute to Folder', all the script is lost and QWV document just holds the front end objects.

Opening the script, there's a message written:

// Write your script here. Note: Reload is disabled upon distribution. Enable by changing the checkbox at Settings->Document preferences->Security->Reload.

Does anyone know here how to fix this issue of not loosing the existing script?

Any help would be greatly appreciated.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hello Pankaj,

This is expected behaviour of distributing documents using publisher. You will not be able to see the Script after distribution.

That's the reason you should keep folder structure like Source and Destination. Reload your document in Source folder and publish it to Destination folder and Access point should be configured to point Destination folder.

This way you will always have you native code (apps) in Source folder and publish docs (without script) destination folder.

Use following path to set up Source Folder-->Management Console--> System--> Setup--> Distribution Services--> General--> Source Folder

To Setup Destination folder-->Management Console--> System--> Setup--> QlikView Services--> Folders--> Mounted Folders--> Name (Destination or Published Documents) and give the path C:\Folder_Name

View solution in original post

4 Replies
annafuksa1
Creator III
Creator III

this is how Distribute works

Not applicable
Author

Hello Pankaj,

This is expected behaviour of distributing documents using publisher. You will not be able to see the Script after distribution.

That's the reason you should keep folder structure like Source and Destination. Reload your document in Source folder and publish it to Destination folder and Access point should be configured to point Destination folder.

This way you will always have you native code (apps) in Source folder and publish docs (without script) destination folder.

Use following path to set up Source Folder-->Management Console--> System--> Setup--> Distribution Services--> General--> Source Folder

To Setup Destination folder-->Management Console--> System--> Setup--> QlikView Services--> Folders--> Mounted Folders--> Name (Destination or Published Documents) and give the path C:\Folder_Name

Not applicable
Author

As annafuksa1‌ mentioned, that is how distribute works. Do you have folder structure defined? General practice to distribute is, the QVW file in 'DataModel' folder will be reloaded and distributed to another folder say 'Application'. QVW in 'DataModel' folder contains both Script and Presentation layer. where as QVW in 'Application' folder contains only presentation layer which will be made available for users on Access point. Every reload task, updates the file in 'DataModel' folder and distributes it to 'Application' folder.

Regards,

KKR

Not applicable
Author

Thanks everyone for your helpful answers. Much appreciated.